From 494a25b2542a158add3f01fa83cd539c86f7bb7f Mon Sep 17 00:00:00 2001 From: Mike Conley Date: Tue, 29 May 2018 19:42:53 -0400 Subject: [PATCH] Bug 1458375 - Make sessionrestore tests wait for the browser-idle-startup-tasks-finished event. r=rwood MozReview-Commit-ID: ODltx5ywn --HG-- extra : rebase_source : b2d0e69009a1bbf6eade95ba374b368053a5fb38 --- .../talos/startup_test/sessionrestore/addon/bootstrap.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/testing/talos/talos/startup_test/sessionrestore/addon/bootstrap.js b/testing/talos/talos/startup_test/sessionrestore/addon/bootstrap.js index b6375baee63a..4319747eff04 100644 --- a/testing/talos/talos/startup_test/sessionrestore/addon/bootstrap.js +++ b/testing/talos/talos/startup_test/sessionrestore/addon/bootstrap.js @@ -16,7 +16,7 @@ ChromeUtils.defineModuleGetter(this, "StartupPerformance", "resource:///modules/sessionstore/StartupPerformance.jsm"); // Observer Service topics. -const WINDOW_READY_TOPIC = "browser-delayed-startup-finished"; +const WINDOW_READY_TOPIC = "browser-idle-startup-tasks-finished"; // Process Message Manager topics. const MSG_REQUEST = "session-restore-test?duration"; @@ -73,7 +73,7 @@ const sessionRestoreTest = { // onReady might fire before the browser window has finished initializing // or sometimes soon after. We handle both cases here. let win = Services.wm.getMostRecentWindow("navigator:browser"); - if (!win || !win.gBrowserInit || !win.gBrowserInit.delayedStartupFinished) { + if (!win || !win.gBrowserInit || !win.gBrowserInit.idleTasksFinished) { // We didn't have a window around yet, so we'll wait until one becomes // available before opening the result tab. Services.obs.addObserver(this, WINDOW_READY_TOPIC);