Closed Bug 2076379 Opened 2 months ago Closed 1 month ago

[wpt-sync] Sync PR 63037 - [WPT] Fix stale expectations in script execution-timing tests 083, 128

Categories

(Core :: DOM: Core & HTML, task, P4)

task

Tracking

()

RESOLVED FIXED
159 Branch
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}

Component: web-platform-tests → DOM: Core & HTML
Product: Testing → Core
Status: NEW → RESOLVED
Closed: 1 month ago
Resolution: --- → INVALID
Status: RESOLVED → REOPENED
Resolution: INVALID → ---

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

New Tests That Don't Pass

Tests Disabled in Gecko Infrastructure

Status: REOPENED → RESOLVED
Closed: 1 month ago → 1 month ago
Resolution: --- → FIXED
Target Milestone: --- → 159 Branch
You need to log in before you can comment on or make changes to this bug.