Skip to content

Navigation API: Move resolving/rejecting ongoing API method tracker to before running script.#12622

Open
jnjaeschke wants to merge 1 commit into
whatwg:mainfrom
jnjaeschke:navigation-api-reentrancy
Open

Navigation API: Move resolving/rejecting ongoing API method tracker to before running script.#12622
jnjaeschke wants to merge 1 commit into
whatwg:mainfrom
jnjaeschke:navigation-api-reentrancy

Conversation

@jnjaeschke

@jnjaeschke jnjaeschke commented Jun 26, 2026

Copy link
Copy Markdown

This fixes #12617.

This fixes an issue where script could run mid-cleanup of an existing navigation (navigate event was already cleared, but ongoing API method tracker was not), which could then trigger an assert if a new navigation was started.

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


/nav-history-apis.html ( diff )

@annevk annevk requested a review from noamr June 26, 2026 12:29
@annevk

annevk commented Jun 26, 2026

Copy link
Copy Markdown
Member

Any reason this doesn't use the complete PR template? It's a normative change for a feature that shipped everywhere so it probably should.

@jnjaeschke

Copy link
Copy Markdown
Author

Apologies. I skipped the template because it's such a small change (and most/all parts of the template don't apply). I updated the initial comment.

@noamr

noamr commented Jun 30, 2026

Copy link
Copy Markdown
Contributor

The change looks good.
How come most parts of the template don't apply?
https://phabricator.services.mozilla.com/D308765 seems like a gecko link rather than a test link?
Does this mean that current test capture this and WebKit/Blink does the right thing?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Development

Successfully merging this pull request may close these issues.

Navigation API: Uncaught reentrancy in #abort-a-navigate-event and #navigate-event-intercept-commit-handler-steps

3 participants