Bug 1492482 - Remove CPOW usage from browser_urlbarHashChangeProxyState.js r=Gijs

Depends on D6952

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

--HG--
extra : moz-landing-system : lando
This commit is contained in:
Mike Conley 2018-10-02 17:56:29 +00:00
parent 8d074a7627
commit 11645f29ef

View File

@ -89,10 +89,9 @@ add_task(async function() {
* get the correct page icon when finished.
*/
add_task(async function() {
let tab = await BrowserTestUtils.openNewForegroundTab(gBrowser, "about:newtab", false);
// NB: CPOW usage because new tab pages can be preloaded, in which case no
// load events fire.
await BrowserTestUtils.waitForCondition(() => !tab.linkedBrowser.contentDocumentAsCPOW.hidden);
// Ensure there's no preloaded newtab browser, since that'll not fire a load event.
gBrowser.removePreloadedBrowser();
let tab = await BrowserTestUtils.openNewForegroundTab(gBrowser, "about:newtab");
let url = "https://example.org/browser/browser/base/content/test/urlbar/dummy_page.html#foo";
gURLBar.value = url;
gURLBar.select();