You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
text: generate a random UUID; url: #dfn-generate-a-random-uuid
62
66
</pre>
@@ -519,7 +523,7 @@ Each {{AppHistory}} object has an associated <dfn for="AppHistory">navigate meth
519
523
520
524
1. Let |navigateInfo| be |options|["{{AppHistoryNavigationOptions/navigateInfo}}"] if it [=map/exists=], or undefined otherwise.
521
525
522
-
1. Let |navigable| be |appHistory|'s [=relevant global object=]'s [=associated Document=]'s navigable.
526
+
1. Let |navigable| be |appHistory|'s [=relevant global object=]'s [=Window/browsing context=]'s [=browsing context/containing navigable=].
523
527
524
528
1. Let |traversable| be |navigable|'s [=navigable/traversable navigable=].
525
529
@@ -539,9 +543,19 @@ Each {{AppHistory}} object has an associated <dfn for="AppHistory">navigate meth
539
543
540
544
<p class="note">This can occur if the |appHistory| object's view of session history is outdated, which can happen for brief periods while all the relevant threads and processes are being synchronized in reaction to a history change (such as the user clearing their history).
541
545
542
-
1. Assert: |targetEntry| is not |navigable|'s [=navigable/current session history entry=].
546
+
1. Assert: |targetEntry| is not |navigable|'s [=navigable/active session history entry=].
543
547
544
-
1. Let |targetStep| be |targetEntry|'s [=session history entry/step=].
548
+
1. Let |targetStep| be null.
549
+
550
+
1. If |targetEntry|'s [=session history entry/step=] is greater than |traversable|'s [=traversable navigable/current session history step=], then set |targetStep| to |targetEntry|'s [=session history entry/step=].
551
+
552
+
1. Otherwise:
553
+
554
+
1. Let |afterTarget| be the [=session history entry=] after |targetEntry| in |navigableEntries|.
555
+
556
+
1. Let |allSteps| be the result of [=traversable navigable/getting all history steps=] in |traversable| within |navigable|'s [=navigable/browsing context group=]'s [=browsing context group/session=].
557
+
558
+
1. Set |targetStep| to the greatest number in |allSteps| that is less than |afterTarget|'s [=session history entry/step=].
545
559
546
560
1. [=Apply the history step=] |targetStep| to |traversable|, with <i>[=apply the history step/checkForUserCancelation=]</i> set to true, <i>[=apply the history step/initiatorToCheck=]</i> set to |initiatorBC|, and <i>[=apply the history step/appHistoryInfo=]</i> set to |navigateInfo|.
<p>A [=user agent=]-generated random UUID string representing this app history entry's place in the app history list. This value will be reused by other {{AppHistoryEntry}} instances that replace this one due to replace-style navigations. This value will survive session restores.
877
891
878
-
<!-- TODO proper cross-link -->
879
-
<p>This is useful for navigating back to this location in the app history entry list, using `appHistory.goTo(key)`.
892
+
<p>This is useful for navigating back to this location in the app history entry list, using {{AppHistory/goTo(key)|appHistory.goTo(key)}}.
0 commit comments