blob: 0cf4865ad7b49c0bfb0b0bcc6d2e51664c1f6b2e (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
|
/* Any copyright is dedicated to the Public Domain.
* http://creativecommons.org/publicdomain/zero/1.0/ */
"use strict";
add_task(async function () {
await BrowserTestUtils.withNewTab(
TEST_BASE_URL + "dummy_page.html",
async function (browser) {
let windowOpenedPromise = BrowserTestUtils.waitForNewWindow();
await SpecialPowers.spawn(browser, [], function () {
content.window.open("", "_BLANK", "toolbar=no,height=300,width=500");
});
let newWin = await windowOpenedPromise;
is(
newWin.gURLBar.value,
"about:blank",
"Should be displaying about:blank for the opened window."
);
await BrowserTestUtils.closeWindow(newWin);
}
);
});
|