Skip to content

Conversation

@AtkinsSJ
Copy link
Contributor

@AtkinsSJ AtkinsSJ commented Nov 27, 2025

The input parameter is named reason, not error which it used to be named before this algorithm was extracted from "abort the ongoing navigation".

Fixes #11966.

(Skipping the checklist as this is a simple editorial error.)


/nav-history-apis.html ( diff )

The input parameter is named `reason`, not `error` which it used to be
named before this algorithm was extracted from "abort the ongoing
navigation".
Copy link
Member

@annevk annevk left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@noamr please double check.

@noamr
Copy link
Collaborator

noamr commented Nov 27, 2025

@noamr please double check.

LGTM

AtkinsSJ added a commit to AtkinsSJ/ladybird that referenced this pull request Nov 27, 2025
I missed where this change happened in the spec. The second half of
abort_the_ongoing_navigation() becomes a separate method, which is
slightly rearranged. I've placed this in Navigation instead of
NavigateEvent because of how many steps poke at the Navigation's
internals.

The text here includes the amendments I made in
whatwg/html#11967 to correct a variable name.

A bonus is that we now actually populate the ErrorEvent instead of
leaving it blank.
AtkinsSJ added a commit to AtkinsSJ/ladybird that referenced this pull request Nov 27, 2025
I missed where this change happened in the spec. The second half of
abort_the_ongoing_navigation() becomes a separate method, which is
slightly rearranged. I've placed this in Navigation instead of
NavigateEvent because of how many steps poke at the Navigation's
internals.

The text here includes the amendments I made in
whatwg/html#11967 to correct a variable name.

A bonus is that we now actually populate the ErrorEvent instead of
leaving it blank.
@annevk annevk merged commit 534692e into whatwg:main Nov 27, 2025
2 checks passed
@AtkinsSJ AtkinsSJ deleted the abort-navigateevent-error branch November 27, 2025 16:43
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.

"Abort a NavigateEvent" uses non-existent "error" variable

3 participants