From 2062a686308f85c6e46d2c14f9ade828041d17d5 Mon Sep 17 00:00:00 2001
From: Domenic Denicola Let activeDocumentNavigationOrigin be the origin of the active document of
browsingContext.javascript
"', then set historyHandling to
+ "replace
".
+
Let sessionHistory be navigationParams's browsing context's session + history.
Unload the document of the current entry.
+Unload sessionHistory's current + entry's document.
If this instance of the navigation algorithm is canceled while this step is running the unload a document algorithm, then the unload a @@ -85570,28 +85584,29 @@ new PaymentRequest(…); // Allowed to use
entry update
" or "reload
"Switch on navigationParams's history + handling:
+entry update
"reload
"Replace the document of the current - entry, and of any other entries that reference the same document as that entry, with newDocument.
Traverse the history to the current entry with historyHandling set to navigationParams's history handling.
Let oldDocument be sessionHistory's current entry's + document.
For each entry of + sessionHistory: if entry's document + is oldDocument, then set entry's document to newDocument.
Traverse the history to sessionHistory's current + entry with historyHandling set to + navigationParams's history + handling.
replace
"Some browsers copy over the serialized state of current entry, - but this is inconsistent. See issue - #6213 for more discussion on this.
+Some browsers copy over the serialized state sessionHistory's + current entry in cases where its URL equals that of newDocument, but this is + inconsistent. See issue #6213 for + more discussion on this.
Insert newEntry after the current entry in - navigationParams's browsing - context's session history.
Traverse the history to newEntry with historyHandling set to "replace
".
replace
"Let newEntry be a new session history entry whose URL is newDocument's URL and document is - newDocument.
Insert newEntry after the current entry in - navigationParams's browsing - context's session history.
Insert newEntry into sessionHistory after its current + entry.
Traverse the history to newEntry with
historyHandling set to "
default
"Assert: navigationParams's history
- handling is "default
".
Remove all the entries in the session history after the current - entry. If the current entry is the last entry in the session history, - then no entries are removed.
+Remove all the entries in sessionHistory after its current entry. + (If the current entry is the last entry in the session history, then no entries + are removed.)
This doesn't necessarily have to affect the user agent's user interface.
Append a new session history entry to the session history,
- whose URL is newDocument's Let newEntry be a new session history entry whose URL is newDocument's URL and document is
newDocument.
Traverse the history to the new entry.
Append newEntry to + sessionHistory.
Traverse the history to newEntry.