Skip to content

Commit e09d102

Browse files
authored
Navigation API: add deferred commit functionality
This adds NavigateEvent.prototype.intercept({ precommitHandler }). Instead of always "committing" the navigation immediately, the navigation only commits after all its precommitHandler promises are resolved. In addition, a precommitHandler receives a NavigationPrecommitController as an argument, and can use it to change the URL of the ongoing navigation before it is committed, using the redirect(newURL) function. See https://github.com/WICG/navigation-api/blob/main/README.md#precommit-handlers for more details. Closes #10919 by superseding it. Maybe closes #10716. Closes WICG/navigation-api#285.
1 parent 3bf7074 commit e09d102

File tree

1 file changed

+526
-212
lines changed

1 file changed

+526
-212
lines changed

0 commit comments

Comments
 (0)