WebKit Bugzilla
New
Browse
Search+
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
NEW
296649
Make window load event dispatch asynchronous to improve WPT compatibility.
https://bugs.webkit.org/show_bug.cgi?id=296649
Summary
Make window load event dispatch asynchronous to improve WPT compatibility.
Basuke Suzuki
Reported
2025-07-29 13:56:13 PDT
Currently the event is firing synchronously. This is the reason many wpt tests using promise_test causes TIMEOUT like this code: ``` promise_test(async t => { // Wait for after the load event so that the navigation doesn't get converted // into a replace navigation. await new Promise(resolve => window.onload = () => t.step_timeout(resolve, 0)); ... ``` When the promise is created, window.onload is already fired and the promise is never resolved and TIMEOUT happens. Most of the tests under `imported/w3c/web-platform-tests/navigation-api/ordering-and-transition/ failed with TIMEOUT because of this.
Attachments
Add attachment
proposed patch, testcase, etc.
Basuke Suzuki
Comment 1
2025-07-29 13:58:49 PDT
rdar://157048720
Basuke Suzuki
Comment 2
2025-07-29 14:06:17 PDT
Pull request:
https://github.com/WebKit/WebKit/pull/48677
Basuke Suzuki
Comment 3
2025-08-04 07:30:04 PDT
***
Bug 277948
has been marked as a duplicate of this bug. ***
Basuke Suzuki
Comment 4
2025-08-21 12:23:28 PDT
Pull request:
https://github.com/WebKit/WebKit/pull/49726
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug