[wpt-sync] Sync PR 65125 - Block re-entrant navigations during CommitNavigation document abort
Categories
(Core :: DOM: Core & HTML, task, P4)
Tracking
()
| Tracking | Status | |
|---|---|---|
| firefox163 | --- | fixed |
People
(Reporter: wpt-sync, Unassigned)
References
()
Details
(Whiteboard: [wptsync downstream])
Sync web-platform-tests PR 65125 into mozilla-central (this bug is closed when the sync is complete).
PR: https://github.com/web-platform-tests/wpt/pull/65125
Details from upstream follow.
Nate Chapin <japhet@chromium.org> wrote:
Block re-entrant navigations during CommitNavigation document abort
FrameLoader::CommitNavigation() calls
CancelProvisionalLoaderForNewNavigation(), which triggers
Document::Abort() and can synchronously dispatch a readystatechange
event. Previously, a listener (or nested run loop such as
window.print()) could start or commit another navigation
mid-CommitNavigation(), causing CommitNavigation() to later clone
ExtraData or overwrite state from an interleaved cross-origin
DocumentLoader.Scope a FrameNavigationDisabler around
CancelProvisionalLoaderForNewNavigation() in CommitNavigation(),
matching DetachDocument(). Also guard
ScriptController::ExecuteJavaScriptURL() against running script or
overwriting the Document if a new Document is committed during the
Trusted Types pre-navigation check or script execution, even when the
initial empty LocalDOMWindow is reused.Fixed: 580879655, 584307204
Change-Id: Ia47d16f95ff6876f6ba2c836de0deaebfffffa79
Reviewed-on: https://chromium-review.googlesource.com/8803658
WPT-Export-Revision: bc50774f54cdb30661385a9a6d3ca249172150e7
| Assignee | ||
Updated•17 days ago
|
| Assignee | ||
Comment 1•10 days ago
|
||
Pushed to try (stability) https://treeherder.mozilla.org/jobs?repo=try&landoInstance=lando-prod-2025&landoCommitID=123329
| Assignee | ||
Comment 2•10 days ago
|
||
CI Results
Ran 0 Firefox configurations based on mozilla-central, and Firefox, Chrome, and Safari on GitHub CI
Total 1 tests and 2 subtests
Status Summary
Firefox
OK : 1
PASS: 2
Chrome
OK : 1
FAIL: 2
Safari
OK : 1
PASS: 1
FAIL: 1
Links
| Assignee | ||
Updated•10 days ago
|
| Assignee | ||
Updated•8 days ago
|
| Assignee | ||
Comment 4•8 days ago
|
||
Test result changes from PR not available.
Comment 5•8 days ago
|
||
| bugherder | ||
Description
•