Bug 1593172 - Wait for a window global that isn't about:blank. r=mconley

Differential Revision: https://phabricator.services.mozilla.com/D81650
This commit is contained in:
Matt Woodrow 2020-07-06 14:22:41 +00:00
Родитель 817b91a023
Коммит b1b2e82f97
1 изменённых файлов: 4 добавлений и 1 удалений

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

@ -69,7 +69,10 @@ add_task(async function() {
// might still be getting set up at this point. We poll to wait
// until its created and available.
await BrowserTestUtils.waitForCondition(() => {
return iframeBC.currentWindowGlobal;
return (
iframeBC.currentWindowGlobal &&
iframeBC.currentWindowGlobal.documentURI != "about:blank"
);
});
let newIframeURI = await SpecialPowers.spawn(iframeBC, [], async () => {