зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1787008 - More consistently keep listener alive in test_color_scheme_browser.xhtml. r=nika
Differential Revision: https://phabricator.services.mozilla.com/D191665
This commit is contained in:
Родитель
d75f73085a
Коммит
f792f9d5ca
|
@ -74,8 +74,11 @@
|
|||
b.addProgressListener(listener);
|
||||
});
|
||||
info(`Calling b.loadURI for ${b.parentNode.id}`);
|
||||
// Keep the listener alive, since it's a weak ref otherwise.
|
||||
window.ALIVE_LISTENER = listener;
|
||||
b.loadURI(null /*blank*/, { triggeringPrincipal });
|
||||
await loaded;
|
||||
delete window.ALIVE_LISTENER;
|
||||
}
|
||||
});
|
||||
async function getBrowserColorScheme(browser) {
|
||||
|
|
Загрузка…
Ссылка в новой задаче