зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1414170 - Fix timeout of toolkit/components/extensions/test/mochitest/test_ext_new_tab_processType.html that replies non-comformant Promise handling. r=smaug
This commit is contained in:
Родитель
07543200e4
Коммит
01c5765cd0
|
@ -58,7 +58,7 @@ add_task(async function test_target_blank_link() {
|
|||
let iframe = document.createElement("iframe");
|
||||
iframe.src = url;
|
||||
document.body.appendChild(iframe);
|
||||
await new Promise(resolve => iframe.addEventListener("load", resolve, {once: true}));
|
||||
await new Promise(resolve => iframe.addEventListener("load", () => setTimeout(resolve, 0), {once: true}));
|
||||
|
||||
let win = SpecialPowers.wrap(iframe).contentWindow;
|
||||
let link = win.document.getElementById("link");
|
||||
|
|
Загрузка…
Ссылка в новой задаче