Not sure why treeherder is not complaining, but sometimes I want to run all tab tests locally with
./mach test browser/base/content/test/tabs/, and it's very annoying that browser_allow_process_switches_despite_related_browser.js times out.
The problem is that it does
const uriString = Services.io.newFileURI(dummyPage).spec;
let viewSourceBrowser = viewSourceTab.linkedBrowser;
let promiseLoad = BrowserTestUtils.browserLoaded(viewSourceBrowser, false, uriString);
let href = await promiseLoad;
However, this is just a symlink which points to
That's the URL that it's loaded in
promiseLoad is never resolved. https://searchfox.org/mozilla-central/rev/b10ae6b7a50d176a813900cbe9dc18c85acd604b/testing/mochitest/BrowserTestUtils/BrowserTestUtils.jsm#345,360
And even if it would resolve, the
is(href, uriString check at the end would fail.
dummyPage needs to be normalized.