Skip to content

Commit

Permalink
Do not iterate over the traversal list while mutating it
Browse files Browse the repository at this point in the history
See whatwg/infra#396 for the more general case.
  • Loading branch information
domenic committed Aug 18, 2021
1 parent 86ee2dc commit 33a3904
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion spec.bs
Original file line number Diff line number Diff line change
Expand Up @@ -1220,7 +1220,8 @@ The <dfn attribute for="AppHistoryDestination">sameDocument</dfn> getter steps a
To <dfn>inform app history about canceling traversals</dfn> in a [=browsing context=] |bc|:

1. Let |appHistory| be |bc|'s [=browsing context/active window=]'s [=Window/app history=].
1. For each |ongoingTraversal| of |appHistory|'s [=AppHistory/ongoing traverse navigations=]: [=finalize with an aborted navigation error=] given |appHistory| and |ongoingTraversal|.
1. Let |traversals| be a [=list/clone=] of |appHistory|'s [=AppHistory/ongoing traverse navigations=].
1. For each |ongoingTraversal| of |traversals|: [=finalize with an aborted navigation error=] given |appHistory| and |ongoingTraversal|.
</div>

<!-- Remember to modify pushState()/replaceState() to use this, when we eventually move to the HTML Standard. -->
Expand Down

0 comments on commit 33a3904

Please sign in to comment.