mirror of
https://github.com/classilla/tenfourfox.git
synced 2026-03-12 13:42:03 +00:00
13 lines
458 B
JavaScript
13 lines
458 B
JavaScript
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);
|
|
});
|