Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Navigation API: deferred commit #449

Open
noamr opened this issue Jan 16, 2025 · 2 comments
Open

Navigation API: deferred commit #449

noamr opened this issue Jan 16, 2025 · 2 comments

Comments

@noamr
Copy link

noamr commented Jan 16, 2025

WebKittens

No response

Title of the proposal

Navigation API: deferred commit

URL to the spec

https://html.spec.whatwg.org/multipage/nav-history-apis.html#dom-navigateevent-intercept

URL to the spec's repository

https://github.com/whatwg/html

Issue Tracker URL

https://github.com/whatwg/html

Explainer URL

https://github.com/WICG/navigation-api/blob/main/README.md#deferred-commit

TAG Design Review URL

w3ctag/design-reviews#1040

Mozilla standards-positions issue URL

No response

WebKit Bugzilla URL

No response

Radar URL

No response

Description

The current behavior of the navigation API updates the URL and the current history entry immediately when intercepting.
This has been a pain point for early adopters of the API.
This proposal is to make this behavior configurable, allowing the developer using the API to defer the commit behavior and call commit when ready.

@bramus
Copy link

bramus commented Jan 16, 2025

This has been a pain point for early adopters of the API.

See WICG/navigation-api#277 for an example of such a struggle.

@jpzwarte
Copy link

CC'ing @cdumez because he is one of the committers working on the Navigation API in WebKit (based on the PRs being merged)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants