Bug 506268 - Session restore fails halfway through, leaves tabs unloaded
authorEdward Lee <edilee@mozilla.com>
Thu, 24 Sep 2009 14:31:05 -0700
changeset 45770 b4d9f0ec3ddeaf697c42566f6dca31477b3d97c1
parent 45769 23355b9604c6a942e029c667a7c9b1ccfbb00fbb
child 45771 09fe5a0ab1fcb4a4854114be02070586b2439cbf
push id14033
push useredward.lee@engineering.uiuc.edu
push dateWed, 23 Jun 2010 22:21:35 +0000
treeherdermozilla-central@227db4ad8cdf [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
bugs506268
Bug 506268 - Session restore fails halfway through, leaves tabs unloaded Load Weave off of the event that triggered sessionstore so that it and its callers can finish loading before autoconnect does network activity.
services/sync/Weave.js
--- a/services/sync/Weave.js
+++ b/services/sync/Weave.js
@@ -57,17 +57,17 @@ WeaveService.prototype = {
         getService(Ci.nsIObserverService);
       os.addObserver(this, "sessionstore-windows-restored", true);
       break;
    /* The following event doesn't exist on Fennec; for Fennec loading, see
     * fennec-weave-overlay.js.
     */
     case "sessionstore-windows-restored":
       Cu.import("resource://weave/service.js");
-      Weave.Service.onStartup();
+      Weave.Utils.makeTimerForCall(function() Weave.Service.onStartup());
       break;
     }
   }
 };
 
 function AboutWeaveService() {}
 AboutWeaveService.prototype = {
   classDescription: "about:weave",