From 8cf2e3eef87b8c296fd11f41b46c3366897a5abd Mon Sep 17 00:00:00 2001
From: Noam Rosenthal Let now be the current high resolution time.
+
+ If readinessValue is " Otherwise, if readinessValue is " Fire an event named A Once a navigation params struct is created, this standard does not
mutate any of its items. They are only passed onward to other
algorithms. A The document load timing info struct has the following
+ items: The unload timing info struct has the following
+ items: After Let hasCrossOriginRedirectsFlag be an unset flag.
+
While true: If locationURL is non-null, then set currentURL to
- locationURL. If locationURL is non-null, then perform the following steps:
+ If locationURL is not the same as
+ currentURL, then set hasCrossOriginRedirectsFlag.
+
+ Set currentURL to locationURL. If request's reserved
@@ -85127,8 +85183,9 @@ interface Location { // but see also reserved environment is
request's reserved client, browsing context is
- browsingContext, and history handling is
- historyHandling.complete
"
otherwise. Various algorithms during page loading affect this value. When the value is set, the
- user agent must fire an event named readinessValue:
+
+
complete
", then set the
+ Document
's load timing info's
+ dom complete time to now.
+
+ interactive
", then set
+ the Document
's load timing info's
+ dom interactive time to now.
+
+ readystatechange
at the Document
object.Document
is said to have an active parser if it is associated with an
HTML parser or an XML parser that has not yet been history handling
Document
has a document load timing info
+ load timing info.
+
+
+
+
+
+
+
+
Document
creation, the session history gets updated. A
history handling behavior is used to track the desired type of session history update
throughout the navigation process. It is one of the following:
-
+
Run process a navigate response with navigationType, allowedToDownload, hasTransientActivation, and @@ -85612,6 +85669,15 @@ interface Location { // but see also fetch timing set to navigationParams's response's timing info, + its redirect count set to navigationParams's + request's redirect count, and + its previous document unload timing set to a new + unload timing info. +
If navigationParams's response
has a `Refresh
` header, then:
Let unloadTimingInfo be to a new unload timing info. + +
Let previousDocument be sessionHistory's current + entry's document. +
Unload sessionHistory's current - entry's document.
+Unload previousDocument with + unloadTimingInfo.
If this instance of the navigation algorithm is canceled while this step is running the unload a document algorithm, then the unload a @@ -85701,6 +85771,14 @@ new PaymentRequest(…); // Allowed to use execution occurring as part of unloading the document or its descendants.)
If navigationParams's has cross-origin + redirects is not set, previousDocument is not null, and + newDocument's origin is the same as + previousDocument's origin, then set + newDocument's load timing info's + previous document unload timing to + unloadTimingInfo. +
Switch on navigationParams's history handling:
@@ -86805,7 +86883,8 @@ dictionary PageTransitionEventInit : EventInit {To unload a
- Document
document, optionally given a recursiveFlag:
Document
document, given an optional recursiveFlag and
+ an optional unload timing info unloadTimingInfo:
Increase the event loop's termination nesting level by @@ -86841,12 +86920,20 @@ dictionary PageTransitionEventInit : EventInit {
If unloadTimingInfo is given, set unloadTimingInfo's + unload event start time to the + current high resolution time. +
Unload event: If document's salvageable state is false, then fire an event named unload
at document's relevant global object, with legacy target override
flag set.
If unloadTimingInfo is given, set unloadTimingInfo's + unload event end time to the + current high resolution time. +
Decrease the event loop's termination nesting level by one.
Document
's relevant global object to run the following substeps:
Set the Document
's load timing info's
+ dom content loaded event start time to the
+ current high resolution time.
+
Fire an event named DOMContentLoaded
at the Document
object, with its bubbles
attribute initialized to
true.
Set the Document
's load timing info's
+ dom content loaded event end time to the
+ current high resolution time.
+
Enable the client message queue of the
ServiceWorkerContainer
object whose associated service worker client is the
@@ -111523,10 +111618,21 @@ document.body.appendChild(text);
this also fires an event immediately during the task -->.
Load event: If the Document
object's browsing context is non-null, then 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 start time to the
+ current high resolution time.
+
+
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.
+