Bug 1444605 - Fix perma-orange browser_active_document.js r=johannh

Reviewers: johannh

Reviewed By: johannh

Bug #: 1444605

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

--HG--
extra : amend_source : f84c2e30200b9afe42defa8eeca1dcbe828061b1
This commit is contained in:
Tim Taubert 2018-03-12 11:51:05 +01:00
Родитель 84ca5e70ae
Коммит 43fb829da9
1 изменённых файлов: 3 добавлений и 0 удалений

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

@ -85,6 +85,9 @@ add_task(async function test_background_window() {
let tab_bg = await BrowserTestUtils.openNewForegroundTab(gBrowser, TEST_URL);
let win = await BrowserTestUtils.openNewBrowserWindow();
// Wait until the new window is really focused.
await new Promise(resolve => SimpleTest.waitForFocus(resolve, win));
// Requests from selected tabs not in the active window must fail.
await promiseMakeCredential(tab_bg)
.then(arrivingHereIsBad)