fune/browser/base/content/test/general/browser_bug537474.js
Victor Porof f9f5914039 Bug 1561435 - Format browser/base/, a=automatic-formatting
# ignore-this-changeset

Differential Revision: https://phabricator.services.mozilla.com/D36041

--HG--
extra : source : 96b3895a3b2aa2fcb064c85ec5857b7216884556
2019-07-05 09:48:57 +02:00

20 lines
491 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"
);
});