blob: b890bf2feab960dc47cb823f9908e3953c793082 (
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"
);
});
|