Skip to content

Conversation

@noamr
Copy link
Collaborator

@noamr noamr commented Dec 4, 2025

"commit a navigate event" is a noop when the navigation is not intercepted in the first place.

Instead of calling it and checking for the interception state internally, only call it for intercepted navigations, and rename it to "commit an intercepted navigate event". Also remove internal logic that tests whether the navigation is same-document (intercepted navigations are always same-document).

(See WHATWG Working Mode: Changes for more details.)


/nav-history-apis.html ( diff )

noamr added 2 commits December 4, 2025 10:56
"commit a navigate event" is a noop when the navigation is not
intercepted in the first place.

Instead of calling it and checking for the interception state
internally, only call it for intercepted navigations, and rename it
to "commit an intercepted navigate event". Also remove internal
logic that tests whether the navigation is same-document
(intercepted navigations are always same-document).
@noamr noamr requested a review from zcorpan December 4, 2025 11:10
@zcorpan
Copy link
Member

zcorpan commented Dec 4, 2025

This seems to indeed be editorial. The precommit handler list should be empty if the interception state is "none".

@zcorpan zcorpan merged commit 3401ce6 into whatwg:main Dec 4, 2025
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

2 participants