Skip to content

Navigation API: deferred commit #449

@noamr

Description

@noamr

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 commit when ready.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions