michael@0: const source = "http://example.com/browser/toolkit/components/viewsource/test/browser/file_bug464222.html"; michael@0: michael@0: function test() { michael@0: waitForExplicitFinish(); michael@0: testSelection(); michael@0: } michael@0: michael@0: function testSelection() { michael@0: openDocumentSelect(source, "a", function(aWindow) { michael@0: let aTags = aWindow.gBrowser.contentDocument.querySelectorAll("a[href]"); michael@0: is(aTags[0].href, "view-source:" + source, "Relative links broken?"); michael@0: closeViewSourceWindow(aWindow, finish); michael@0: }); michael@0: }