blob: b14f35e61ab080cd63eb6931addca9c2f2ec738b (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
|
const source =
"http://example.com/browser/toolkit/components/viewsource/test/browser/file_bug464222.html";
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);
});
|