blob: e2456ff60055bee63dd638408921a1976b16b644 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
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"
);
});
|