From 45a1c98138e66111b983208c450313143c4df5b2 Mon Sep 17 00:00:00 2001
From: Dominic Farolino The values " Navigation always involves source browsing context, which is the browsing
@@ -85125,18 +85134,16 @@ new PaymentRequest(…); // Allowed to use
</script>
+ // domfar-update-dfn
Some of the sections below, to which the above algorithm defers in certain cases, require the
user agent to update the session history with the new page, given some navigation
- params navigationParams. When a user agent is required to do this, it must
- queue a global task on the networking task source, given the
- relevant global object of the entry update
"
- reload
"replace
"
reload
" and "replace
" are the same in every way except for two; "reload
" is specifically used when we need to set a request's reload-navigation flag, and to bypass
+ the Navigate to a fragment algorithm in cases where it
+ would otherwise be triggered.Document
object of the current
- entry (not the new one), to run the following steps:Document
newDocument. When
+ a user agent is required to do this, it must queue a global task on the
+ networking task source, given the relevant global object of the
+ Document
object of the current entry (not the new one), to run the
+ following steps:
Let newDocument be navigationParams's browsing context's active - document.
Unload the document of the current entry.
@@ -85152,16 +85159,27 @@ new PaymentRequest(…); // Allowed to usereload
" or "entry update
"entry update
" or "reload
"
Replace the document of the current - entry, and any other entries that reference the same document as that entry, with newDocument.
Let newEntry be a new session history entry whose document is newDocument.
Traverse the history to the current entry.
Replace the document of all entries (except the + current entry) that reference current entry's document with newDocument.
Insert newEntry in place of current entry in + navigationParams's browsing + context's session history.
+ +This step does not change the value of current entry.
+Traverse the history to newEntry.
Replace the current entry with a new session history entry
- 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 current entry.
Insert newEntry in place of current entry in + navigationParams's browsing + context's session history.
+ +This step does not change the value of current entry.
+Traverse the history to newEntry.
After creating the Document
object, but before any script execution, certainly
before the parser stops, the user agent must update the
- session history with the new page given navigationParams.
Then, with the newly created Document
, the user agent must update the
- session history with the new page given navigationParams. User agents may do
- this before the complete document has been parsed (thus achieving incremental rendering),
- and must do this before any scripts are to be executed.
Document
. User agents may do this before the complete document has been parsed (thus
+ achieving incremental rendering), and must do this before any scripts are to be
+ executed.
Error messages from the parse process (e.g., XML namespace well-formedness errors) may be
reported inline by mutating the Document
.
After creating the Document
object, but potentially before the page has finished
parsing, the user agent must update the session history with the new page given
- navigationParams.
User agents may add content to the head
element of the Document
,
e.g., linking to a style sheet, providing script, or giving the document a title
.
After creating the Document
object, but potentially before the page has finished
fully loading, the user agent must update the session history with the new page given
- navigationParams.
User agents may add content to the head
element of the Document
, or
attributes to the element host element, e.g., to link to a style sheet, to provide a
@@ -85480,7 +85508,7 @@ new PaymentRequest(…); // Allowed to use
After creating the Document
object, but potentially before the page has finished
fully loading, the user agent must update the session history with the new page given
- navigationParams.
User agents may add content to the head
element of the Document
, or
attributes to the embed
element, e.g. to link to a style sheet or to give the
@@ -85536,7 +85564,7 @@ new PaymentRequest(…); // Allowed to use
After creating the Document
object, but potentially before the page has been
completely set up, the user agent must update the session history with the new page
- given navigationParams.
The values " Some of the sections below, to which the above algorithm defers in certain cases, require the
user agent to update the session history with the new page, given some navigation
params navigationParams and a The values "reload
" and "replace
" are the same in every way except for two; "reload
" is specifically used when we need to set a request's
- // domfar-update-dfn
Document
newDocument. When
From c5756b36d0b239c1ef3148e92925629c528cc049 Mon Sep 17 00:00:00 2001
From: Dominic Farolino replace
"
reload
" and "replace
" are the same in every way except for two; "reload
" is specifically used when we need to set a request's reload-navigation flag, and to bypass
- the Navigate to a fragment algorithm in cases where it
- would otherwise be triggered.
The values "reload
" and "replace
" are nearly identical with two exceptions: "reload
" is specifically used when we need to set a request's reload-navigation flag, and to bypass the
+ Navigate to a fragment algorithm in cases where it would
+ otherwise be triggered.
Navigation always involves source browsing context, which is the browsing context which was responsible for starting the navigation.
From abf1c9de22f00565c11d3f4a28dfe25597cbf368 Mon Sep 17 00:00:00 2001 From: Dominic FarolinoLet newEntry be a new session history entry whose document is newDocument.
Replace the document of all entries (except the
- current entry) that reference current entry's Replace the document of the current
+ entry, and any other entries that reference the same document with newDocument.
Insert newEntry in place of current entry in - navigationParams's browsing - context's session history.
+Traverse the history to newEntry with + sameEntryTraversal set to true.
This step does not change the value of current entry.
+Let newEntry be a new session history entry whose URL is newDocument's URL and document is + newDocument.
+ +Some browsers copy over the serialized state of current entry, + but this is inconsistent. See issue + #6202 for more discussion on this.
Traverse the history to newEntry.
Insert newEntry after 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 in place of current entry in - navigationParams's browsing - context's session history.
- -This step does not change the value of current entry.
-Insert newEntry after current entry in + navigationParams's browsing + context's session history.
Traverse the history to newEntry.
Traverse the history to newEntry with
+ historyHandling set to "replace
".
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,
@@ -85728,8 +85746,8 @@ new PaymentRequest(…); // Allowed to use
with an optional history handling behavior historyHandling (default "default
"), an optional boolean nonBlockingEvents
- (default false), and an optional boolean explicitHistoryNavigation (default
- false):
This algorithm is not just invoked when explicitly going back or forwards in the session history — it is also invoked @@ -85784,7 +85802,7 @@ new PaymentRequest(…); // Allowed to use data-x="she-document">document.
If newDocument is different than the current entry's document, then:
+ data-x="she-document">document or sameEntryTraversal is true, then:Remove any tasks queued by the history traversal
From 7ddf9a3ed11b86eda5738c4203a90a06073eafcf Mon Sep 17 00:00:00 2001
From: Dominic Farolino entry update
"
- reload
"
Traverse the history to newEntry with +
Traverse the history to the current entry with sameEntryTraversal set to true.
default
"), an optional boolean nonBlockingEvents
(default false), an optional boolean explicitHistoryNavigation (default
- false), and an optional boolean sameEntryTraversal (default false):
+ false), and an optional boolean sameEntryTraversal (default false):
This algorithm is not just invoked when explicitly going back or forwards in the session history — it is also invoked @@ -85802,7 +85801,7 @@ new PaymentRequest(…); // Allowed to use data-x="she-document">document.
If newDocument is different than the current entry's document or sameEntryTraversal is true, then:
+ data-x="she-document">document or sameEntryTraversal is true, then:Remove any tasks queued by the history traversal
From 55f83a77d95005355b77d0470922d326e89d4a69 Mon Sep 17 00:00:00 2001
From: Dominic Farolino
The values "reload
" and "replace
" are nearly identical with two exceptions: "reload
" is specifically used when we need to set a request's reload-navigation flag, and to bypass the
- Navigate to a fragment algorithm in cases where it would
- otherwise be triggered.
Navigation always involves source browsing context, which is the browsing context which was responsible for starting the navigation.
@@ -85165,12 +85158,12 @@ new PaymentRequest(…); // Allowed to use entry, and of any other entries that reference the same document as that entry, with newDocument.Traverse the history to the current entry with - sameEntryTraversal set to true.
Traverse the history to the current entry with sameEntryTraversal set to true.
Some browsers copy over the serialized state of current entry, - but this is inconsistent. See issue - #6202 for more discussion on this.
+ but this is inconsistent. See issue + #6213 for more discussion on this.Insert newEntry after current entry in @@ -85198,7 +85191,7 @@ new PaymentRequest(…); // Allowed to use -
replace
"Insert newEntry after current entry in +
Insert newEntry after the current entry in navigationParams's browsing context's session history.
Traverse the history to the new entry, with historyHandling set to navigationParams's history handling.
Traverse the history to the new entry.
After creating the Document
object, but before any script execution, certainly
before the parser stops, the user agent must update the
- session history with the new page given navigationParams and
- document.
Document
.
@@ -85390,7 +85381,7 @@ new PaymentRequest(…); // Allowed to use
After creating the Document
object, but potentially before the page has finished
parsing, the user agent must update the session history with the new page given
- navigationParams and document.
Document
.
User agents may add content to the head
element of the Document
,
e.g., linking to a style sheet, providing script, or giving the document a title
.
After creating the Document
object, but potentially before the page has finished
fully loading, the user agent must update the session history with the new page given
- navigationParams and document.
Document
.
User agents may add content to the head
element of the Document
, or
attributes to the element host element, e.g., to link to a style sheet, to provide a
@@ -85523,7 +85514,7 @@ new PaymentRequest(…); // Allowed to use
After creating the Document
object, but potentially before the page has finished
fully loading, the user agent must update the session history with the new page given
- navigationParams and document.
Document
.
User agents may add content to the head
element of the Document
, or
attributes to the embed
element, e.g. to link to a style sheet or to give the
From 342aefc27c05ebd027637e33790b5bc41964b6dc Mon Sep 17 00:00:00 2001
From: Dominic Farolino
Traverse the history to the current entry with sameEntryTraversal set to true.
default
"), an optional boolean nonBlockingEvents
- (default false), an optional boolean explicitHistoryNavigation (default
- false), and an optional boolean sameEntryTraversal (default false):
+ (default false), and an optional boolean explicitHistoryNavigation (default
+ false):
This algorithm is not just invoked when explicitly going back or forwards in the session history — it is also invoked @@ -85792,7 +85793,9 @@ new PaymentRequest(…); // Allowed to use data-x="she-document">document.
If newDocument is different than the current entry's document or sameEntryTraversal is true, then:
+ data-x="she-document">document, or historyHandling is "entry update
" or "reload
",
+ then:
Remove any tasks queued by the history traversal
From 6a3a6d6947d1d415b4609e66fc2e14cae74ae55a Mon Sep 17 00:00:00 2001
From: Domenic Denicola
Insert newEntry after current entry in +
Insert newEntry after the current entry in navigationParams's browsing context's session history.
After creating the Document
object, but potentially before the page has been
completely set up, the user agent must update the session history with the new page
- given navigationParams and document.
Document
.
From 6608d7791a3262e2268533ea7531ab0d92090ff5 Mon Sep 17 00:00:00 2001
From: Domenic Denicola If entry's document is null, then:
Assert: historyHandling is "default
".
Let request be a new request whose url is entry's URL.
If explicitHistoryNavigation is true, then set request's history-navigation flag.
Assert: historyHandling is not "replace
".
Navigate the browsing context to request with historyHandling