Bug 829995 - Ignore case of .url extension when migrating bookmarks from Internet Explorer. r=felipe
authorMatthew Noorenberghe <mozilla@noorenberghe.ca>
Wed, 16 Jan 2013 18:39:46 -0800
changeset 119126 4a1b771880d8
parent 119125 7d49dd8c58dd
child 119127 b52c02f77cf5
push id24192
push usermozilla@noorenberghe.ca
push date2013-01-18 00:18 +0000
treeherdermozilla-central@b52c02f77cf5 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersfelipe
bugs829995
milestone21.0a1
Bug 829995 - Ignore case of .url extension when migrating bookmarks from Internet Explorer. r=felipe
browser/components/migration/src/IEProfileMigrator.js
--- a/browser/components/migration/src/IEProfileMigrator.js
+++ b/browser/components/migration/src/IEProfileMigrator.js
@@ -248,17 +248,17 @@ Bookmarks.prototype = {
         if (entry.isReadable()) {
           // Recursively import the folder.
           this._migrateFolder(entry, destFolderId);
         }
       }
       else {
         // Strip the .url extension, to both check this is a valid link file,
         // and get the associated title.
-        let matches = entry.leafName.match(/(.+)\.url$/);
+        let matches = entry.leafName.match(/(.+)\.url$/i);
         if (matches) {
           let fileHandler = Cc["@mozilla.org/network/protocol;1?name=file"].
                             getService(Ci.nsIFileProtocolHandler);
           let uri = fileHandler.readURLFile(entry);
           let title = matches[1];
 
           PlacesUtils.bookmarks.insertBookmark(aDestFolderId,
                                                uri,