Bug 741068. (Bv1) nsSuiteGlue.js: Fix wrong object ('this', not 'importObserver'). r+a=KaiRo
authorSerge Gautherie <sgautherie.bz@free.fr>
Thu, 05 Apr 2012 00:34:26 +0200
changeset 10704 62053a3b1aeebcac1b48185a336bccdf222b3b99
parent 10703 81b871cdd9f8a450042956eb053c7d937c5614bf
child 10705 fa4685b8588ebbc5487be71d14dc1b30f680c4f4
push idunknown
push userunknown
push dateunknown
bugs741068
Bug 741068. (Bv1) nsSuiteGlue.js: Fix wrong object ('this', not 'importObserver'). r+a=KaiRo
suite/common/src/nsSuiteGlue.js
--- a/suite/common/src/nsSuiteGlue.js
+++ b/suite/common/src/nsSuiteGlue.js
@@ -745,18 +745,18 @@ SuiteGlue.prototype = {
         try {
           var importer = Components.classes["@mozilla.org/browser/places/import-export-service;1"]
                                    .getService(Components.interfaces.nsIPlacesImportExportService);
           importer.importHTMLFromURI(bookmarksURI, true /* overwrite existing */);
         }
         catch(ex) {
           // Report the error, but ignore it.
           Components.utils.reportError("bookmarks.html file could be corrupt. " + ex);
-          Services.obs.removeObserver(importObserver, "bookmarks-restore-success");
-          Services.obs.removeObserver(importObserver, "bookmarks-restore-failed");
+          Services.obs.removeObserver(this, "bookmarks-restore-success");
+          Services.obs.removeObserver(this, "bookmarks-restore-failed");
         }
       }
       else
         Components.utils.reportError("Unable to find bookmarks.html file.");
 
       // Reset preferences, so we won't try to import again at next run.
       if (importBookmarksHTML)
         Services.prefs.setBoolPref("browser.places.importBookmarksHTML", false);