Source code

Revision control

Copy as Markdown

Other Tools

Test Info:

/* Make sure <link rel="..."> isn't respected in sub-frames. */
add_task(async function () {
const ROOT =
const URL = ROOT + "file_bug970276_popup1.html";
let promiseIcon = waitForFaviconMessage(
true,
ROOT + "file_bug970276_favicon1.ico"
);
let tab = await BrowserTestUtils.openNewForegroundTab(gBrowser, URL);
let icon = await promiseIcon;
Assert.equal(
icon.iconURL,
ROOT + "file_bug970276_favicon1.ico",
"The expected icon has been set"
);
BrowserTestUtils.removeTab(tab);
});