Bug 1875100 - Hopefully fix windows / androids crashtest timeouts for good.

MANUAL PUSH: Trivial patch to preserve older behavior CLOSED TREE
This commit is contained in:
Emilio Cobos Álvarez 2024-02-07 16:01:57 +01:00
Родитель b3b2952940
Коммит e17ec8e44e
1 изменённых файлов: 6 добавлений и 0 удалений

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

@ -182,6 +182,10 @@ export function OnRefTestLoad(win) {
g.browser.setAttribute("id", "browser");
g.browser.setAttribute("type", "content");
g.browser.setAttribute("primary", "true");
// FIXME: This ideally shouldn't be needed, but on android and windows
// sometimes the window is occluded / hidden, which causes some crashtests
// to time out. Bug 1864255 might be able to help here.
g.browser.setAttribute("manualactiveness", "true");
g.browser.setAttribute("remote", g.browserIsRemote ? "true" : "false");
// Make sure the browser element is exactly 800x1000, no matter
// what size our window is
@ -204,6 +208,8 @@ export function OnRefTestLoad(win) {
}
g.browserMessageManager = g.browser.frameLoader.messageManager;
// See the comment above about manualactiveness.
g.browser.docShellIsActive = true;
// The content script waits for the initial onload, then notifies
// us.
RegisterMessageListenersAndLoadContentScript(false);