@@ -186,6 +186,7 @@ spec: HTML; urlPrefix: https://html.spec.whatwg.org/multipage/
186186 text: set up a worker environment settings object; url: workers.html#set-up-a-worker-environment-settings-object
187187 text: set up a worklet environment settings object; url: worklets.html#set-up-a-worklet-environment-settings-object
188188 text: shared worker; url: workers.html#shared-workers
189+ text: traverse the history by a delta; url: browsing-the-web.html#traverse-the-history-by-a-delta
189190 text: window open steps; url: window-object.html#window-open-steps
190191 text: worker event loop; url: webappapis.html#worker-event-loop-2
191192 text: worklet global scopes; url:worklets.html#concept-document-worklet-global-scopes
@@ -3100,24 +3101,24 @@ traverses the history of a given context by a delta.
31003101<div algorithm="remote end steps for browsingContext.traverseHistory">
31013102The [=remote end steps=] with |command parameters| are:
31023103
3103- 1. Let |context id | be the value of the <code> context </code> field of
3104- |command parameters|.
3104+ 1. Let |browsing context | be the result of [=trying=] to [=get a browsing context=]
3105+ with |command parameters| ["<code>context</code>"] |.
31053106
3106- 1. Let |context| be the result of [=trying=] to [=get a browsing context=]
3107- with |context id|.
3107+ 1. Assert: |browsing context| is not null.
31083108
3109- 1. Assert: |context| is not null.
3109+ 1. Let |navigable| be the [=/navigable=] whose [=navigable/active
3110+ document=] is |browsing context|'s [=browsing context/active document=] .
31103111
3111- 1. Let |delta| be the value of the <code> delta</code> field of |command
3112- parameters|.
3112+ 1. Let |delta| be |command parameters|["<code>delta</code>"] .
31133113
3114- 1. Let |wait condition| be the value of the <code> wait</code> field of |command
3115- parameters| if present, or "<code> none</code> " otherwise.
3114+ 1. If |command parameters| [=map/contains=] "<code> wait</code> , let |wait
3115+ condition| be |command parameters|["<code>wait</code>"] . Otherwise let |wait
3116+ condition| be "<code> none</code> ".
31163117
311731181. Let |navigation id| be the string representation of a
31183119 [[!RFC4122|UUID]] based on truly random, or pseudo-random numbers.
31193120
3120- 1. [=Traverse the history by a delta=] given |delta|, |context |, and
3121+ 1. [=Traverse the history by a delta=] given |delta|, |navigable |, and
31213122 |navigation id|.
31223123
312331241. Let (|event received|, |navigate status|) be [=await=] given
@@ -3129,8 +3130,8 @@ The [=remote end steps=] with |command parameters| are:
31293130
313031311. If |navigate status|'s status is "<code> complete</code> ":
31313132
3132- 1. Let |body| be a [=map=] matching the
3133- <code> BrowsingContextTraverseHistoryResult </code> production, with the
3133+ 1. Let |body| be a [=/ map=] matching the
3134+ <code> browsingContext.TraverseHistoryResult </code> production, with the
31343135 <code> navigation</code> field set to |navigation id|, and the
31353136 <code> url</code> field set to the result of the [=URL serializer=] given
31363137 |navigate status|'s url.
@@ -3145,8 +3146,8 @@ The [=remote end steps=] with |command parameters| are:
31453146
314631471. If |wait condition| is "<code> none</code> ":
31473148
3148- 1. Let |body| be a [=map=] matching the
3149- <code> BrowsingContextTraverseHistoryResult </code> production, with the
3149+ 1. Let |body| be a [=/ map=] matching the
3150+ <code> browsingContext.TraverseHistoryResult </code> production, with the
31503151 <code> navigation</code> field set to |navigation id|, and the
31513152 <code> url</code> field set to the result of the [=URL serializer=] given
31523153 |navigate status|'s url.
@@ -3166,8 +3167,8 @@ The [=remote end steps=] with |command parameters| are:
316631671. If event received is "<code> page show</code> ", let |persisted| be true,
31673168 otherwise let |persisted| be false.
31683169
3169- 1. Let |body| be a [=map=] matching the
3170- <code> BrowsingContextTraverseHistoryResult </code> production, with the
3170+ 1. Let |body| be a [=/ map=] matching the
3171+ <code> browsingContext.TraverseHistoryResult </code> production, with the
31713172 <code> navigation</code> field set to |status|'s id, the
31723173 <code> persisted</code> field set to |persisted|, and the <code> url</code>
31733174 field set to the result of the [=URL serializer=] given |status|'s url.
@@ -3185,8 +3186,6 @@ Issue: Do we want to expose a `browsingContext.pageShow event? In that case we'd
31853186need to call this whenever `pageshow` is going to be emitted, not just on
31863187bfcache restore, and also add the persisted status to the data.
31873188
3188- 1. If the [=current session=] is null, return.
3189-
31903189 1. Let |navigation id| be |navigation status|'s id.
31913190
31923191 1. [=Resume=] with "<code> page show</code> ", |navigation id|, and
@@ -3199,8 +3198,6 @@ bfcache restore, and also add the persisted status to the data.
31993198The <dfn export>WebDriver BiDi pop state</dfn> steps given <var
32003199ignore> context</var> and |navigation status| are:
32013200
3202- 1. If the [=current session=] is null, return.
3203-
32043201 1. Let |navigation id| be |navigation status|'s id.
32053202
32063203 1. [=Resume=] with "<code> pop state</code> ", |navigation id|, and
0 commit comments