gecko-dev/browser/base/content/test/general/browser_bug537474.js
Gijs Kruitbosch 6548bdd016 Bug 1423938 - try to fix browser_bug537474 detecting about:blank loads in the selected tab, r=johannh
MozReview-Commit-ID: cLfN049EJt

--HG--
extra : rebase_source : e5f96d5724ea77c5ef41fa03e3c85da9d3761b48
2018-03-20 22:46:49 +00:00

9 lines
503 B
JavaScript

add_task(async function() {
let browserLoadedPromise = BrowserTestUtils.browserLoaded(gBrowser.selectedBrowser, false, "about:mozilla");
window.browserDOMWindow.openURI(makeURI("about:mozilla"), null,
Ci.nsIBrowserDOMWindow.OPEN_CURRENTWINDOW, null,
Services.scriptSecurityManager.getSystemPrincipal());
await browserLoadedPromise;
is(gBrowser.currentURI.spec, "about:mozilla", "page loads in the current content window");
});