зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1647666: test_doc_busy.html: Handle the case where we get a load event for about:blank before the download prompt itself. r=MarcoZ
Differential Revision: https://phabricator.services.mozilla.com/D80828
This commit is contained in:
Родитель
31af427a90
Коммит
a047283d38
|
@ -41,6 +41,10 @@
|
|||
async win => {
|
||||
info("Window opened, waiting for load event");
|
||||
await BrowserTestUtils.waitForEvent(win, "load");
|
||||
if (win.location && win.location.href == "about:blank") {
|
||||
info("Loaded about:blank, waiting for real load event");
|
||||
await BrowserTestUtils.waitForEvent(win, "load");
|
||||
}
|
||||
info("Window loaded, checking if download prompt");
|
||||
return win.location &&
|
||||
win.location.href == "chrome://mozapps/content/downloads/unknownContentType.xhtml";
|
||||
|
|
Загрузка…
Ссылка в новой задаче