-
Notifications
You must be signed in to change notification settings - Fork 38
Navigation API: deferred commit #449
Copy link
Copy link
Closed
Labels
from: GoogleProposed, edited, or co-edited by Google.Proposed, edited, or co-edited by Google.position: supporttopic: web apisSpec relates to web APIs (entry points for script)Spec relates to web APIs (entry points for script)venue: WHATWG HTML Workstream
Metadata
Metadata
Assignees
Labels
from: GoogleProposed, edited, or co-edited by Google.Proposed, edited, or co-edited by Google.position: supporttopic: web apisSpec relates to web APIs (entry points for script)Spec relates to web APIs (entry points for script)venue: WHATWG HTML Workstream
Type
Fields
Give feedbackNo fields configured for issues without a type.
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
See PR: whatwg/html#10919
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#precommit-handlers
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
commitwhen ready.