From 9406c1df6c75369e3208e3ced1ab31cef55e919f Mon Sep 17 00:00:00 2001 From: "jonathandicarlo@jonathan-dicarlos-macbook-pro.local" Date: Fri, 19 Dec 2008 18:43:36 -0800 Subject: [PATCH] Set Weave component back to using the 'sessionstore-windows-restored' event. Will use a different way of intializing on Fennec. --- services/sync/Weave.js | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/services/sync/Weave.js b/services/sync/Weave.js index 8416c1ef9124..2ce339f48d77 100644 --- a/services/sync/Weave.js +++ b/services/sync/Weave.js @@ -53,9 +53,10 @@ WeaveService.prototype = { 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;