Skip to content

Commit eac8ff1

Browse files
committed
Bug 1891008 - [geckoview] Delay return of "GeckoViewTabUtil.createNewTab()" until window has finished loading. r=geckoview-reviewers,ohall
The issue arises when attempting to proceed too quickly after opening a new tab (essentially a new window) before it has completed loading. This premature action can occasionally lead to subsequent navigations getting stuck and failing to reach the "interactive" or "complete" states. This issue has been observed across numerous WPT tests running on Android with Fission enabled. With the recent fix, approximately 14,000 intermittent timeouts have been resolved. Further investigation into this matter will continue on bug 1837949. Differential Revision: https://phabricator.services.mozilla.com/D207314
1 parent 7c6102e commit eac8ff1

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

mobile/android/modules/geckoview/GeckoViewTestUtils.sys.mjs

+5-2
Original file line numberDiff line numberDiff line change
@@ -24,12 +24,15 @@ export const GeckoViewTabUtil = {
2424
if (subject.name === sessionId) {
2525
Services.obs.removeObserver(
2626
openingObserver,
27-
"geckoview-window-created"
27+
"browser-delayed-startup-finished"
2828
);
2929
resolve(subject);
3030
}
3131
};
32-
Services.obs.addObserver(openingObserver, "geckoview-window-created");
32+
Services.obs.addObserver(
33+
openingObserver,
34+
"browser-delayed-startup-finished"
35+
);
3336
});
3437

3538
try {

0 commit comments

Comments
 (0)