Bug 827976 - Create the hidden window after first paint, but before session restore. r=mconley
authorFelipe Gomes <felipc@gmail.com>
Mon, 04 Mar 2019 18:52:43 +0000
changeset 520344 1f136a1cafc3e88a096bc8aff6d081cbb0dd839d
parent 520343 200e4a37af4741224dfc291a6f87e926089fd1c4
child 520345 3c2bc3b312f3a4e8ccfee9d7183e2d6373906ee1
push id10862
push userffxbld-merge
push dateMon, 11 Mar 2019 13:01:11 +0000
treeherdermozilla-beta@a2e7f5c935da [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersmconley
bugs827976
milestone67.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 827976 - Create the hidden window after first paint, but before session restore. r=mconley Differential Revision: https://phabricator.services.mozilla.com/D21072
browser/base/content/browser.js
--- a/browser/base/content/browser.js
+++ b/browser/base/content/browser.js
@@ -1512,16 +1512,20 @@ var gBrowserInit = {
 
   _delayedStartup() {
     let { TelemetryTimestamps } =
       ChromeUtils.import("resource://gre/modules/TelemetryTimestamps.jsm");
     TelemetryTimestamps.add("delayedStartupStarted");
 
     this._cancelDelayedStartup();
 
+    // Bug 1531854 - The hidden window is force-created here
+    // until all of its dependencies are handled.
+    Services.appShell.hiddenDOMWindow;
+
     // We need to set the OfflineApps message listeners up before we
     // load homepages, which might need them.
     OfflineApps.init();
 
     gBrowser.addEventListener("InsecureLoginFormsStateChange", function() {
       gIdentityHandler.refreshForInsecureLoginForms();
     }, true);