Closed Bug 2077607 Opened 1 month ago Closed 1 month ago

[wpt-sync] Sync PR 63207 - Drop navigate event only for BFCache-restored non-intercepted navs

Categories

(Core :: DOM: Navigation, task, P4)

task

Tracking

()

RESOLVED FIXED
160 Branch
Tracking Status
firefox160 --- fixed

People

(Reporter: wpt-sync, Unassigned)

References

()

Details

(Whiteboard: [wptsync downstream])

Attachments

(1 file)

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: If86f586924e4ceb57f5565f9c016b5b37ab3f6ef

Reviewed-on: https://chromium-review.googlesource.com/8479895
WPT-Export-Revision: b9f1098ed8dcdbc6f02826f49f8887abf6520ece

Component: web-platform-tests → DOM: Navigation
Product: Testing → Core
Attached file Notable wpt changes —

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)

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

Attachment

General

Created:
Updated:
Size: