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 4a1b771880d830a75f83593b31493c0874166b13
parent 119125 7d49dd8c58ddbcea8e2242c459c358f98ebfc79d
child 119127 b52c02f77cf5b76027fea25412e629cd3d551cb3
push id24192
push usermozilla@noorenberghe.ca
push dateFri, 18 Jan 2013 00:18:36 +0000
treeherdermozilla-central@b52c02f77cf5 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersfelipe
bugs829995
milestone21.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
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,