Bug 1703125 - Replace BrowserTestUtils.waitForCondition with TestUtils.waitForCondition in browser/base/content/test/popupNotifications/head.js. r=prathiksha

Differential Revision: https://phabricator.services.mozilla.com/D110950
This commit is contained in:
Mahak 2021-04-06 16:16:10 +00:00
Родитель e1c2a8125f
Коммит e302eb2afc
1 изменённых файлов: 2 добавлений и 2 удалений

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

@ -15,11 +15,11 @@ ChromeUtils.defineModuleGetter(
async function waitForWindowReadyForPopupNotifications(win) {
// These are the same checks that PopupNotifications.jsm makes before it
// allows a notification to open.
await BrowserTestUtils.waitForCondition(
await TestUtils.waitForCondition(
() => win.gBrowser.selectedBrowser.docShellIsActive,
"The browser should be active"
);
await BrowserTestUtils.waitForCondition(
await TestUtils.waitForCondition(
() => Services.focus.activeWindow == win,
"The window should be active"
);