Source code
Revision control
Copy as Markdown
Other Tools
Test Info:
const source =
add_task(async function () {
let viewSourceTab = await openDocumentSelect(source, "a");
let href = await SpecialPowers.spawn(
viewSourceTab.linkedBrowser,
[],
async function () {
return content.document.querySelectorAll("a[href]")[0].href;
}
);
is(href, "view-source:" + source, "Relative links broken?");
gBrowser.removeTab(viewSourceTab);
});