Set Weave component back to using the 'sessionstore-windows-restored' event. Will use a different way of intializing on Fennec.
authorjonathandicarlo@jonathan-dicarlos-macbook-pro.local
Fri, 19 Dec 2008 18:43:36 -0800
changeset 45125 31b2783ade190be7718f03bb72057b78a7dd1b8b
parent 45124 b99315ef91adb6be2e91de0f7ce80b63279aff31
child 45126 6c8ac5d6d05450a050300c278aa171d087bb0b1a
push idunknown
push userunknown
push dateunknown
Set Weave component back to using the 'sessionstore-windows-restored' event. Will use a different way of intializing on Fennec.
services/sync/Weave.js
--- a/services/sync/Weave.js
+++ b/services/sync/Weave.js
@@ -48,19 +48,20 @@ WeaveService.prototype = {
 
   observe: function BSS__observe(subject, topic, data) {
     switch (topic) {
     case "app-startup":
       let os = Components.classes["@mozilla.org/observer-service;1"].
         getService(Components.interfaces.nsIObserverService);
       os.addObserver(this, "profile-after-change", true);
       break;
-   /* The events "final-ui-startup" and "sessionstore-windows-restored"
-    * would be better but unfortunately neither one exists in Fennec. */
-    case "profile-after-change":
+   /* The following event doesn't exist on Fennec; for Fennec loading, see
+    * fennec-weave-overlay.js.
+    */
+    case "sessionstore-windows-restored":
       Components.utils.import("resource://weave/service.js");
       Weave.Service.onStartup();
       break;
     }
   }
 };
 
 function NSGetModule(compMgr, fileSpec) {