Bug 1603869 - Pass URL to BrowserTestUtils.browserLoaded in browser_download_after_revoke.js r=kmag

Differential Revision: https://phabricator.services.mozilla.com/D57379

--HG--
extra : moz-landing-system : lando
This commit is contained in:
Valentin Gosu 2019-12-17 07:25:18 +00:00
parent 787235c807
commit 8c741dedaf

View file

@ -47,11 +47,11 @@ function test() {
});
}
BrowserTestUtils.browserLoaded(gBrowser.selectedBrowser).then(onLoad);
const target = "http://example.com/browser/dom/url/tests/empty.html";
BrowserTestUtils.browserLoaded(gBrowser.selectedBrowser, false, target).then(
onLoad
);
info("Loading download page...");
BrowserTestUtils.loadURI(
gBrowser,
"http://example.com/browser/dom/url/tests/empty.html"
);
BrowserTestUtils.loadURI(gBrowser, target);
}