mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-19 16:25:38 +00:00
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:
parent
8d074a7627
commit
11645f29ef
@ -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();
|
||||
|
Loading…
Reference in New Issue
Block a user