Bug 1511465: Fix race condition in browser_oversized.js. r=mak

Seems that when run as the first test in a test run there is a race for whether
the favicon for the initial tab has already been seen or not. Rarely we fail the
race and end up seeing a successful favicon load. This makes us ignore any
favicons other than the one we're interested in.

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

--HG--
extra : moz-landing-system : lando
This commit is contained in:
Dave Townsend 2018-12-05 19:03:36 +00:00
Родитель cd794d1181
Коммит e3c6d70315
1 изменённых файлов: 1 добавлений и 1 удалений

Просмотреть файл

@ -5,7 +5,7 @@ const ROOT = "http://mochi.test:8888/browser/browser/base/content/test/favicons/
add_task(async () => {
await BrowserTestUtils.withNewTab({ gBrowser, url: "about:blank" }, async (browser) => {
let faviconPromise = waitForFaviconMessage();
let faviconPromise = waitForFaviconMessage(true, `${ROOT}large.png`);
BrowserTestUtils.loadURI(browser, ROOT + "large_favicon.html");
await BrowserTestUtils.browserLoaded(browser);