Closed Bug 1946543 Opened 2 months ago Closed 2 months ago

[wpt-sync] Sync PR 50538 - Navigation API: window.stop() after-transition traversal should actually block the traversal

Categories

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

task

Tracking

()

RESOLVED FIXED
137 Branch
Tracking Status
firefox137 --- fixed

People

(Reporter: wpt-sync, Unassigned)

References

()

Details

(Whiteboard: [wptsync downstream])

Sync web-platform-tests PR 50538 into mozilla-central (this bug is closed when the sync is complete).

PR: https://github.com/web-platform-tests/wpt/pull/50538
Details from upstream follow.

Nate Chapin <japhet@chromium.org> wrote:

Navigation API: window.stop() after-transition traversal should actually block the traversal

If a traversal is intercepted by the navigate event, and the
intercept() sets { commit: 'after-transition' } (which defers
commit), and the navigation is aborted via window.stop() or the UI
stop button before the traversal is committed, the browser session
history and the navigation API view of the session history will get
out of sync (the browser will have its offset as though the
traversal committed, but the commit didn't happen and the navigation
API does not update its current position).

Fixed: 394772469
Change-Id: I2ab67c7d6b5f0116dde98c5196e0ff0822a2c15e
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/6227767
Reviewed-by: Domenic Denicola \<domenic@chromium.org>
Reviewed-by: Charlie Reis \<creis@chromium.org>
Commit-Queue: Nate Chapin \<japhet@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1416923}

Component: web-platform-tests → DOM: Navigation
Product: Testing → Core

CI Results

Ran 0 Firefox configurations based on mozilla-central, and Firefox, Chrome, and Safari on GitHub CI

Total 1 tests and 1 subtests

Status Summary

Firefox

OK : 1
FAIL : 1

Chrome

CRASH: 1

Safari

OK : 1
FAIL : 1

Links

GitHub PR Head
GitHub PR Base

Details

New Tests That Don't Pass

Pushed by wptsync@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/f78252cea0b1 [wpt PR 50538] - Navigation API: window.stop() after-transition traversal should actually block the traversal, a=testonly
Status: NEW → RESOLVED
Closed: 2 months ago
Resolution: --- → FIXED
Target Milestone: --- → 137 Branch
You need to log in before you can comment on or make changes to this bug.