Bug 1352043 - attempt to fix intermittents by forcing an initial system load in HiddenFrames, r=kmag draft
authorGijs Kruitbosch <gijskruitbosch@gmail.com>
Mon, 10 Apr 2017 15:55:53 +0100
changeset 559868 b10e0e64661dffe6058c01d40a50af7c8291a430
parent 559608 731639fccc709a4dd95fed7e9dda88efb2227906
child 623534 85ec0e7326d7dcdb5c6c3b002df475f7aa908ff0
push id53239
push userbmo:gijskruitbosch+bugs@gmail.com
push dateMon, 10 Apr 2017 18:11:15 +0000
reviewerskmag
bugs1352043
milestone55.0a1
Bug 1352043 - attempt to fix intermittents by forcing an initial system load in HiddenFrames, r=kmag MozReview-Commit-ID: 5iBIqPclToU
browser/modules/HiddenFrame.jsm
--- a/browser/modules/HiddenFrame.jsm
+++ b/browser/modules/HiddenFrame.jsm
@@ -74,11 +74,14 @@ HiddenFrame.prototype = {
         this._listener = null;
         this._webProgress = null;
         // Get the window reference via the document.
         this._frame = this._browser.document.ownerGlobal;
         this._deferred.resolve(this._frame);
       }
     };
     this._webProgress.addProgressListener(this._listener, Ci.nsIWebProgress.NOTIFY_STATE_DOCUMENT);
-    this._browser.document.location = XUL_PAGE;
+    let docShell = this._browser.getInterface(Ci.nsIDocShell);
+    docShell.createAboutBlankContentViewer(Services.scriptSecurityManager.getSystemPrincipal());
+    docShell.useGlobalHistory = false;
+    this._browser.loadURI(XUL_PAGE, 0, null, null, null);
   }
 };