From 583d29ae7d0803e4104ae3925bcec18f5786c8d3 Mon Sep 17 00:00:00 2001 From: "jonathandicarlo@jonathan-dicarlos-macbook-pro.local" Date: Fri, 19 Dec 2008 16:13:00 -0800 Subject: [PATCH] Changed components/Weave.js to start up the service on the 'profile-after-change' event instead of the 'sessionstore-windows-restored' event, since the latter doesn't exist on Fennec. --- services/sync/Weave.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/services/sync/Weave.js b/services/sync/Weave.js index 91403d7cb25..a03b37b6f45 100644 --- a/services/sync/Weave.js +++ b/services/sync/Weave.js @@ -51,9 +51,9 @@ WeaveService.prototype = { case "app-startup": let os = Components.classes["@mozilla.org/observer-service;1"]. getService(Components.interfaces.nsIObserverService); - os.addObserver(this, "sessionstore-windows-restored", true); + os.addObserver(this, "profile-after-change", true); break; - case "sessionstore-windows-restored": + case "profile-after-change": Components.utils.import("resource://weave/service.js"); Weave.Service.onStartup(); break;