Bug 1352043 - attempt to fix intermittents by forcing an initial system load in HiddenFrames, r=kmag
MozReview-Commit-ID: 5iBIqPclToU
--- 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);
}
};