blob: 30c4fb67a275265eec93cf869e9bf13a07b97807 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
|
const source = "http://example.com/browser/toolkit/components/viewsource/test/browser/file_bug464222.html";
add_task(function *() {
let viewSourceTab = yield* openDocumentSelect(source, "a");
let href = yield ContentTask.spawn(viewSourceTab.linkedBrowser, { }, function* () {
return content.document.querySelectorAll("a[href]")[0].href;
});
is(href, "view-source:" + source, "Relative links broken?");
gBrowser.removeTab(viewSourceTab);
});
|