Bug 1315944 - ensure about blank viewer creation happens in the right browser, r?florian
MozReview-Commit-ID: 7LCGyKHUF76
--- a/browser/base/content/utilityOverlay.js
+++ b/browser/base/content/utilityOverlay.js
@@ -368,17 +368,17 @@ function openLinkIn(url, where, params)
if (aAllowPopups) {
flags |= Ci.nsIWebNavigation.LOAD_FLAGS_ALLOW_POPUPS;
}
if (aIndicateErrorPageLoad) {
flags |= Ci.nsIWebNavigation.LOAD_FLAGS_ERROR_LOAD_CHANGES_RV;
}
if (aForceAboutBlankViewerInCurrent) {
- w.gBrowser.selectedBrowser.createAboutBlankContentViewer(aPrincipal);
+ aCurrentBrowser.createAboutBlankContentViewer(aPrincipal);
}
aCurrentBrowser.loadURIWithFlags(url, {
flags: flags,
referrerURI: aNoReferrer ? null : aReferrerURI,
referrerPolicy: aReferrerPolicy,
postData: aPostData,
userContextId: aUserContextId