From d280c831b695ad8eb00fbcbd9af2de8bf625823e Mon Sep 17 00:00:00 2001
From: Domenic Denicola
Let historyHandling be "replace
" if
- windowType is not "existing or none
"; otherwise, "default
".
Let historyHandling be "replace
" if
+ windowType is not "existing or none
"; otherwise, "default
".
Unlike many other types of navigations, following hyperlinks does not have
+ special "replace
" behavior for when documents are not
+ completely loaded. This is true for both user-initiated instances of following
+ hyperlinks, as well as script-triggered ones via, e.g., aElement.click()
.
Queue an element task on the DOM manipulation task source given subject to navigate target to @@ -56344,9 +56352,8 @@ fur
If target browsing context is null, then return.
If form document has not yet completely loaded and the
- submitted from submit()
method flag is set, then
- set historyHandling to "replace
".
If form document has not yet completely loaded, then set
+ historyHandling to "replace
".
If the value of method is Location { // but see also replace".
If any of the following conditions are met, then set historyHandling to "default
":
Location
object's relevant Document
has
- completely loaded, orclick
event's isTrusted
- attribute is true, orclick
event, whose isTrusted
attribute is true, is being handled.Location
-object navigate, given url and
- historyHandling.
To Location
-object navigate, given a url and
- historyHandling:
To Location
-object navigate, given a URL url
+ and an optional history handling behavior historyHandling (default "default
"):
Let browsingContext be the current global object's Location { // but see also replace".
If this Location
object's relevant Document
is not
+ yet completely loaded, and the incumbent
+ global object does not have transient activation, then set
+ historyHandling to "replace
".
Navigate browsingContext to url,
with exceptionsEnabled set to true, historyHandling set to historyHandling, and the
@@ -84744,7 +84728,7 @@ interface Location { // but see also Parse the given value relative to the entry
settings object. If that failed, throw a TypeError
exception.
Location
-object-setter navigate given the resulting URL
+ Location
-object navigate given the resulting URL
record.
Location
-object-setter navigate to copyURL.
Location
-object navigate to copyURL.
The host
@@ -84863,7 +84847,7 @@ interface Location { // but see also state
override.
Location
-object-setter navigate to copyURL.
Location
-object navigate to copyURL.
The hostname
@@ -84906,7 +84890,7 @@ interface Location { // but see also state
override.
Location
-object-setter navigate to copyURL.
Location
-object navigate to copyURL.
The port
@@ -84952,7 +84936,7 @@ interface Location { // but see also state
override.
Location
-object-setter navigate to copyURL.
Location
-object navigate to copyURL.
The pathname
@@ -85004,7 +84988,7 @@ interface Location { // but see also state
override.
Location
-object-setter navigate to copyURL.
Location
-object navigate to copyURL.
The search
@@ -85062,7 +85046,7 @@ interface Location { // but see also hash
@@ -85109,7 +85093,7 @@ interface Location { // but see also state
override.
Location
-object-setter navigate to copyURL.
Location
-object navigate to copyURL.
Unlike the equivalent API for the a
and area
elements,
@@ -85136,7 +85120,7 @@ interface Location { // but see also default".
When the to the current high resolution time given the
Document
's relevant global object.
Completely finish loading the Document
.
Queue the navigation timing entry for document.
The Document
is now ready for post-load tasks.
Completely finish loading the Document
.
When the user agent is to abort a parser, it must run the following steps:
From 9a405d3c299baeb34be98d984bd4adda3ce6c57e Mon Sep 17 00:00:00 2001 From: Domenic DenicolaLet window be the Document
's relevant global
+ object.
Set the Document
's load timing info's load event start
- time to the current high resolution time given the
- Document
's relevant global object.
Fire an event named load
at the Document
object's relevant global
- object, with legacy target override flag set.
Set the Document
's load timing info's load event end
- time to the current high resolution time given the
- Document
's relevant global object.
Completely finish loading the Document
.
Queue the navigation timing entry for document.
Assert: Document
's page showing is false.
If the Document
object's browsing
- context is non-null, then queue a global task on the DOM manipulation
- task source given the Document
's relevant global object to run
- these steps:
Set the Document
's page showing flag to true.
If the Document
's page showing flag is true, then return
- (i.e. don't fire the event below).
Fire an event named pageshow
at window, using
+ PageTransitionEvent
, with the persisted
attribute initialized to false,
+ and legacy target override flag set.
Set the Document
's page showing flag to true.
Completely finish loading the Document
.
Fire an event named pageshow
at the Document
object's relevant
- global object, using PageTransitionEvent
, with the persisted
attribute initialized to false, and
- legacy target override flag set.
Queue the navigation timing entry for the Document
.
Queue a global task on the DOM manipulation task source given the
- Document
's relevant global object to run the following substeps:
Document
's relevant global object to run the following steps:
Update the current document readiness to "complete
".
Load event: If the Document
object's browsing context is non-null, then:
If the Document
object's browsing
+ context is null, then abort these steps.
Let window be the Document
's relevant global
- object.
Let window be the Document
's relevant global
+ object.
Set the Document
's load timing info's load event start
- time to the current high resolution time given
- window.
Set the Document
's load timing info's load event start
+ time to the current high resolution time given window.
Fire an event named load
at window, with legacy target override
- flag set.
Fire an event named load
at window, with legacy target override
+ flag set.
Set the Document
's load timing info's load event end
- time to the current high resolution time given
- window.
Set the Document
's load timing info's load event end
+ time to the current high resolution time given window.
Assert: Document
's page showing is false.
Assert: Document
's page showing is false.
Set the Document
's page showing flag to true.
Set the Document
's page showing flag to true.
Fire an event named pageshow
at window, using
- PageTransitionEvent
, with the persisted
attribute initialized to false,
- and legacy target override flag set.
Fire an event named pageshow
at window, using
+ PageTransitionEvent
, with the persisted
attribute initialized to false, and
+ legacy target override flag set.
Completely finish loading the Document
.
Completely finish loading the Document
.
Queue the navigation timing entry for the Document
.
Queue the navigation timing entry for the Document
.