Source code

Revision control

Copy as Markdown

Other Tools

Test Info: Warnings

/* Any copyright is dedicated to the Public Domain.
"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);
}
);
});