зеркало из https://github.com/mozilla/gecko-dev.git
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:
Родитель
817b91a023
Коммит
b1b2e82f97
|
@ -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 () => {
|
||||
|
|
Загрузка…
Ссылка в новой задаче