[wpt-sync] Sync PR 63037 - [WPT] Fix stale expectations in script execution-timing tests 083, 128
Categories
(Core :: DOM: Core & HTML, task, P4)
Tracking
()
| Tracking | Status | |
|---|---|---|
| firefox159 | --- | fixed |
People
(Reporter: wpt-sync, Unassigned)
References
()
Details
(Whiteboard: [wptsync downstream])
Sync web-platform-tests PR 63037 into mozilla-central (this bug is closed when the sync is complete).
PR: https://github.com/web-platform-tests/wpt/pull/63037
Details from upstream follow.
Helmut Januschka <helmut@januschka.com> wrote:
[WPT] Fix stale expectations in script execution-timing tests 083, 128
128.html: Since script execution moved from the DOM insertion steps to
the post-connection steps (whatwg/html#8730), atomically inserting a
fragment into an empty, connected script element first runs the outer
script's children changed steps (executing its concatenated Text node
children) and only then runs the post-connection steps of the inserted
inner script. The HTML spec now documents exactly this scenario in a
note under "script processing model". Chrome and Safari already produce
the new order; Firefox has not implemented post-connection script
execution yet (it also fails the companion test 148.html for the same
reason).083.html: Setting frames[0].location starts an asynchronous navigation,
so the fireFooEvent() call in the immediately following script block
runs while the iframe's original document is still fully active and must
invoke the listener a second time. Only once the navigation completes is
the listener suppressed, because its callback's realm belongs to a
Window whose associated document is no longer fully active (DOM's "inner
invoke", step 2.4). The test assumed the navigation deactivates the
document synchronously and expected only one "event: foo" entry; Chrome,
Firefox and Safari all produce identical output with two entries,
matching the spec. The interesting assertion is preserved: the final
fireFooEvent() after the navigation completes must not fire the
listener.Update both expectations and remove the stale Blink FAIL baselines.
Bug: 40781537
Change-Id: I81d48902a406eaf7d3ab58972dfedcb503660bbc
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/8462267
Commit-Queue: Helmut Januschka \<helmut@januschka.com>
Reviewed-by: Mason Freed \<masonf@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1706418}
| Assignee | ||
Updated•2 months ago
|
| Assignee | ||
Updated•1 month ago
|
| Assignee | ||
Updated•1 month ago
|
| Assignee | ||
Comment 1•1 month ago
|
||
Pushed to try (stability) https://treeherder.mozilla.org/jobs?repo=try&landoInstance=lando-prod-2025&landoCommitID=98614
| Assignee | ||
Comment 2•1 month ago
|
||
CI Results
Ran 9 Firefox configurations based on mozilla-central, and Firefox, Chrome, and Safari on GitHub CI
Total 156 tests and 1 subtests
Status Summary
Firefox
OK : 2[GitHub] 155[Gecko-windows11-32-25h2-opt] 156[Gecko-android-em-14-x86_64-debug-geckoview, Gecko-android-em-14-x86_64-lite-opt-geckoview, Gecko-android-em-14-x86_64-opt-geckoview, Gecko-linux2404-64-debug, Gecko-linux2404-64-opt, Gecko-windows11-32-25h2-debug, Gecko-windows11-64-25h2-debug, Gecko-windows11-64-25h2-opt]
PASS: 1[GitHub] 165[Gecko-windows11-32-25h2-opt] 166[Gecko-android-em-14-x86_64-debug-geckoview, Gecko-android-em-14-x86_64-lite-opt-geckoview, Gecko-android-em-14-x86_64-opt-geckoview, Gecko-linux2404-64-debug, Gecko-linux2404-64-opt, Gecko-windows11-32-25h2-debug, Gecko-windows11-64-25h2-debug, Gecko-windows11-64-25h2-opt]
FAIL: 1[GitHub] 2[Gecko-android-em-14-x86_64-debug-geckoview, Gecko-android-em-14-x86_64-lite-opt-geckoview, Gecko-android-em-14-x86_64-opt-geckoview, Gecko-linux2404-64-debug, Gecko-linux2404-64-opt, Gecko-windows11-32-25h2-debug, Gecko-windows11-32-25h2-opt, Gecko-windows11-64-25h2-debug, Gecko-windows11-64-25h2-opt]
Chrome
OK : 2
PASS: 2
Safari
OK : 2
PASS: 2
Links
Gecko CI (Treeherder)
GitHub PR Head
GitHub PR Base
Details
Firefox-only Failures
- /html/semantics/scripting-1/the-script-element/execution-timing/128.html [wpt.fyi]
- scheduler: appending script element to script :
FAIL
- scheduler: appending script element to script :
New Tests That Don't Pass
- /html/semantics/scripting-1/the-script-element/execution-timing/106-defer-noimport.html [wpt.fyi]:
OK[Gecko-android-em-14-x86_64-debug-geckoview,Gecko-android-em-14-x86_64-lite-opt-geckoview,Gecko-android-em-14-x86_64-opt-geckoview,Gecko-linux2404-64-debug,Gecko-linux2404-64-opt,Gecko-windows11-32-25h2-debug,Gecko-windows11-64-25h2-debug,Gecko-windows11-64-25h2-opt],SKIP[Gecko-windows11-32-25h2-opt] - /html/semantics/scripting-1/the-script-element/execution-timing/128.html [wpt.fyi]
- scheduler: appending script element to script :
FAIL(Chrome:PASS, Safari:PASS)
- scheduler: appending script element to script :
- /html/semantics/scripting-1/the-script-element/execution-timing/148.html [wpt.fyi]
- scheduler: insert multiple inline scripts; first script deletes subsequent script :
FAIL
- scheduler: insert multiple inline scripts; first script deletes subsequent script :
Tests Disabled in Gecko Infrastructure
- /html/semantics/scripting-1/the-script-element/execution-timing/106-defer-noimport.html [wpt.fyi]:
OK[Gecko-android-em-14-x86_64-debug-geckoview,Gecko-android-em-14-x86_64-lite-opt-geckoview,Gecko-android-em-14-x86_64-opt-geckoview,Gecko-linux2404-64-debug,Gecko-linux2404-64-opt,Gecko-windows11-32-25h2-debug,Gecko-windows11-64-25h2-debug,Gecko-windows11-64-25h2-opt],SKIP[Gecko-windows11-32-25h2-opt]
Comment 4•1 month ago
|
||
| bugherder | ||
https://hg.mozilla.org/mozilla-central/rev/5a84850f48d4
https://hg.mozilla.org/mozilla-central/rev/b249971921de
Description
•