From 4d522bbbac0040794a7a14999413ac62748df37f 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 @@ -56544,9 +56552,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
@@ -84960,7 +84944,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
@@ -85079,7 +85063,7 @@ interface Location { // but see also state
override.
Location
-object-setter navigate to copyURL.
Location
-object navigate to copyURL.
The hostname
@@ -85122,7 +85106,7 @@ interface Location { // but see also state
override.
Location
-object-setter navigate to copyURL.
Location
-object navigate to copyURL.
The port
@@ -85168,7 +85152,7 @@ interface Location { // but see also state
override.
Location
-object-setter navigate to copyURL.
Location
-object navigate to copyURL.
The pathname
@@ -85220,7 +85204,7 @@ interface Location { // but see also state
override.
Location
-object-setter navigate to copyURL.
Location
-object navigate to copyURL.
The search
@@ -85278,7 +85262,7 @@ interface Location { // but see also hash
@@ -85325,7 +85309,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,
@@ -85352,7 +85336,7 @@ interface Location { // but see also default".
When the 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.
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.
Let window be the Document
's relevant global
+ object.
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.
Set the Document
's load timing info's load event start
+ time to the current high resolution time given window.
Queue the navigation timing entry for document.
Fire an event named load
at window, with legacy target override
+ flag set.
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 load timing info's load event end
+ time to the current high resolution time given window.
If the Document
's page showing flag is true, then return
- (i.e. don't fire the event below).
Assert: Document
's page showing is false.
Set the Document
's page showing flag to true.
Fire an event named pageshow
at the Document
object's relevant
- global object, using PageTransitionEvent
, with the pageshow
at window, using
+ PageTransitionEvent
, with the persisted
attribute initialized to false, and
legacy target override flag set.
Completely finish loading the Document
.
Queue the navigation timing entry for the 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: