[wpt-sync] Sync PR 64345 - script: Cancel and do not run tasks for replaced documents
Categories
(Core :: DOM: Core & HTML, task, P4)
Tracking
()
| Tracking | Status | |
|---|---|---|
| firefox162 | --- | fixed |
People
(Reporter: wpt-sync, Unassigned)
References
()
Details
(Whiteboard: [wptsync downstream])
Sync web-platform-tests PR 64345 into mozilla-central (this bug is closed when the sync is complete).
PR: https://github.com/web-platform-tests/wpt/pull/64345
Details from upstream follow.
Martin Robinson <mrobinson@igalia.com> wrote:
script: Cancel and do not run tasks for replaced documents
This change does three things:
- Reworks the
ScriptThreadmessage handling logic to be more
readable.- Ensures that tasks for closed pipelines are never run.
- Cancels tasks when a
Documentis being replaced in aWindow.
This is supposed to happen via "unload," but that does not yet
call "destroy" on theDocument.This fixes a crash where a promise rejection handler was queued for a
replacedDocumentand it was run without a global.Testing: This change adds a WPT crash test.
Fixes: #<!-- nolink -->49305.Reviewed in servo/servo#49399
| Assignee | ||
Updated•20 days ago
|
| Assignee | ||
Updated•17 days ago
|
| Assignee | ||
Updated•17 days ago
|
| Assignee | ||
Comment 1•17 days ago
|
||
Pushed to try (stability) https://treeherder.mozilla.org/jobs?repo=try&landoInstance=lando-prod-2025&landoCommitID=116411
| Assignee | ||
Comment 2•16 days ago
|
||
CI Results
Ran 11 Firefox configurations based on mozilla-central, and Firefox, Chrome, and Safari on GitHub CI
Total 17 tests
Status Summary
Firefox
OK : 16
PASS: 1[Gecko-linux2204-64-wayland-debug, Gecko-linux2204-64-wayland-opt, GitHub] 61[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]
FAIL: 11
Chrome
PASS: 1
Safari
PASS: 1
Links
Gecko CI (Treeherder)
GitHub PR Head
GitHub PR Base
Details
New Tests That Don't Pass
- /html/browsers/browsing-the-web/navigating-across-documents/initial-empty-document/iframe-src-204-fragment.html [wpt.fyi]
- src:
FAIL - location.href:
FAIL - location.assign:
FAIL - window.open:
FAIL - link click:
FAIL
- src:
- /html/browsers/browsing-the-web/navigating-across-documents/initial-empty-document/iframe-src-204-pushState-replaceState.html [wpt.fyi]
- history.replaceState:
FAIL
- history.replaceState:
- /html/browsers/browsing-the-web/navigating-across-documents/initial-empty-document/window-open-204-fragment.html [wpt.fyi]
- location.href:
FAIL - location.assign:
FAIL
- location.href:
- /html/browsers/browsing-the-web/navigating-across-documents/initial-empty-document/window-open-history-length.html [wpt.fyi]
- Starting history.length for window.open():
FAIL - Starting history.length for window.open(about:blank):
FAIL - Starting history.length for window.open(url-with-204-response):
FAIL
- Starting history.length for window.open():
Comment 4•11 days ago
|
||
| bugherder | ||
Description
•