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:
James Teh 2020-06-24 09:30:14 +00:00
Родитель 31af427a90
Коммит a047283d38
1 изменённых файлов: 4 добавлений и 0 удалений

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

@ -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";