[wpt-sync] Sync PR 62752 - Fix stylesheet and helper loading races
Categories
(Core :: DOM: Core & HTML, task, P4)
Tracking
()
| Tracking | Status | |
|---|---|---|
| firefox158 | --- | fixed |
People
(Reporter: wpt-sync, Unassigned)
References
()
Details
(Whiteboard: [wptsync downstream])
Sync web-platform-tests PR 62752 into mozilla-central (this bug is closed when the sync is complete).
PR: https://github.com/web-platform-tests/wpt/pull/62752
Details from upstream follow.
Domenic Denicola <d@domenic.me> wrote:
Fix stylesheet and helper loading races
Load the DOMParser URL tests' helper before creating the iframe whose load handler calls it. A fast iframe must not depend on the following external helper having finished loading.
Hold the script-text tests' stylesheet responses until the mutation callback releases them. A fixed network delay can expire during speculative loading, before the mutation timer is even scheduled, causing the target script to execute too soon.
Establish a WebSocket before navigating to each test document, then release its stylesheet through WPT's stash responder. This avoids relying on HTTP request prioritization while a parser-blocking stylesheet is pending. Release the stylesheet even after an earlier test failure so document loading can finish.
The existing 500 ms mutation delay still assumes the parser has prepared the target script by then; stylesheet completion is explicitly controlled.
| Assignee | ||
Updated•2 months ago
|
| Assignee | ||
Comment 1•2 months ago
|
||
Pushed to try (stability) https://treeherder.mozilla.org/jobs?repo=try&landoInstance=lando-prod-2025&landoCommitID=93299
| Assignee | ||
Comment 2•2 months ago
|
||
CI Results
Ran 0 Firefox configurations based on mozilla-central, and Firefox, and Chrome on GitHub CI
Total 4 tests and 45 subtests
Status Summary
Firefox
OK : 4
PASS: 180
Chrome
OK : 4
PASS: 180
Links
Comment 4•2 months ago
|
||
| bugherder | ||
Description
•