[wpt-sync] Sync PR 63207 - Drop navigate event only for BFCache-restored non-intercepted navs
Categories
(Core :: DOM: Navigation, task, P4)
Tracking
()
| Tracking | Status | |
|---|---|---|
| firefox160 | --- | fixed |
People
(Reporter: wpt-sync, Unassigned)
References
()
Details
(Whiteboard: [wptsync downstream])
Attachments
(1 file)
|
92.32 KB,
text/plain
|
Details |
Sync web-platform-tests PR 63207 into mozilla-central (this bug is closed when the sync is complete).
PR: https://github.com/web-platform-tests/wpt/pull/63207
Details from upstream follow.
Noam Rosenthal <nrosenthal@chromium.org> wrote:
Drop navigate event only for BFCache-restored non-intercepted navs
crrev.com/c/7653517 made SetEntriesForRestore() unconditionally clear
ongoing_navigate_event_ to avoid a dangling cross-document navigate
event after restore. However, SetEntriesForRestore() also runs on
prerender activation (and bfcache restore) while an intercepted
same-document navigation may still be in flight. Dropping it without
aborting its signal causes NavigateEvent::ReactDone() to hit
CHECK_EQ(this, ongoing_navigate_event_) once the intercept handler
settles.Only clear the ongoing event (and its API method tracker) when it has
not been intercepted and has not reacted, i.e. it is the dangling
cross-document navigation the original change targeted.Bug: 553918186
Change-Id: If86f586924e4ceb57f5565f9c016b5b37ab3f6efReviewed-on: https://chromium-review.googlesource.com/8479895
WPT-Export-Revision: b9f1098ed8dcdbc6f02826f49f8887abf6520ece
| 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=99878
| Assignee | ||
Comment 2•1 month ago
|
||
CI Results
Ran 11 Firefox configurations based on mozilla-central, and Firefox, Chrome, and Safari on GitHub CI
Total 422 tests
Status Summary
Firefox
OK : 121
PASS : 2[Gecko-linux2204-64-wayland-debug, Gecko-linux2204-64-wayland-opt] 133[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] 134[Gecko-android-em-14-x86_64-debug-geckoview, Gecko-android-em-14-x86_64-lite-opt-geckoview]
FAIL : 4
TIMEOUT: 2
ERROR : 1[Gecko-linux2204-64-wayland-debug, Gecko-linux2204-64-wayland-opt, GitHub] 282[Gecko-android-em-14-x86_64-debug-geckoview, Gecko-android-em-14-x86_64-lite-opt-geckoview] 283[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]
NOTRUN : 2
Chrome
TIMEOUT: 4
Safari
OK : 1
FAIL : 1
ERROR : 1
Links
Gecko CI (Treeherder)
GitHub PR Head
GitHub PR Base
Details
(See attachment for full changes)
https://hg.mozilla.org/mozilla-central/rev/e8eb9489f67a
https://hg.mozilla.org/mozilla-central/rev/deadd4fc2369
Description
•