Bug 1352043 - attempt to fix intermittents by forcing an initial system load in HiddenFrames, r=kmag
authorGijs Kruitbosch <gijskruitbosch@gmail.com>
Mon, 10 Apr 2017 15:55:53 +0100
changeset 560229 65f6388e03bbed4f3abdd6a86568e1a371132a42
parent 560228 68d1795caf30791fd96bf1b70a3dab0f9c58d6b8
child 560230 485ce0191284c74bab37b93386f081e51c0b6899
push id53365
push userjichen@mozilla.com
push dateTue, 11 Apr 2017 08:35:12 +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);
   }
 };