From f9313a259125679b225d1868f495473884d00989 Mon Sep 17 00:00:00 2001
From: Noam Rosenthal The term Document {
A A A The document load timing info struct has the following
To snapshot source snapshot params
@@ -98248,11 +98244,6 @@ location.href = '#foo';
Otherwise: This is a cross-document navigation: we check if the navigation can trigger a
- view transition, unload the old document, and then proceed. Let potentiallyTriggerViewTransition be false. Let isBrowserUINavigation be true if
- userInvolvementForNavigateEvent is " If sourceSnapshotParams is not null and sourceSnapshotParams's
- view transition opt-in is
- true, then set potentiallyTriggerViewTransition to the result of calling
- can navigation trigger a cross-document view-transition? given
- displayedDocument's origin,
- targetEntry's document's origin, targetEntry's document's was created via cross-origin redirects,
- navigationType, and isBrowserUINavigation.
-
- Let firePageSwap be the following steps given a
- Assert: this is running as part of a task queued on displayedDocument's
- relevant agent's event loop. Let navigation be displayedDocument's
- relevant global object's navigation API. Let activation be null.
-
- If targetEntry's document's origin is same origin with
- displayedDocument's origin, then:
-
- Let destinationEntry be determined by switching on
- navigationType: The current entry of
- navigation The A new Set activation to a new Fire an event named
- Let unloadSteps be the following steps given a boolean
- shouldFirePageSwapBeforeUnload: Set the ongoing navigation for navigable to null. This allows new navigations of
- navigable to start, whereas during the traversal they were blocked. Let firePageSwapStep be an algorithm that does nothing. If shouldFirePageSwapBeforeUnload is true, then set
- firePageSwapStep to the following step: run
- firePageSwap given null. Unload a document and its descendants given
- displayedDocument, targetEntry's document, afterPotentialUnloads, and
- firePageSwapStep. If potentiallyTriggerViewTransition is false, then run
- unloadSteps given true. Otherwise, queue a global task on the
- navigation and traversal task source given navigable's active window to run the steps: Let proceedWithNavigationAfterViewTransitionCapture be the following
- step: Append the
- following step to traversable: Run unloadSteps given false. Let viewTransition be the result of
- setting up a cross-document view-transition given
- displayedDocument, targetEntry's document, navigationType, and
- proceedWithNavigationAfterViewTransitionCapture. Run firePageSwap given
- viewTransition. If viewTransition is null, then run
- proceedWithNavigationAfterViewTransitionCapture. Assert: navigationType is not null. In the case where a view transition started, the view transitions
- algorithms are responsible for calling
- proceedWithNavigationAfterViewTransitionCapture. Deactivate
+ displayedDocument, given userNavigationInvolvement,
+ targetEntry, navigationType, and
+ afterPotentialUnloads. Return " To deactivate a document for a cross-document navigation given a
+ Let navigable be displayedDocument's
+ node navigable. Let potentiallyTriggerViewTransition be false. Let isBrowserUINavigation be true if
+ userNavigationInvolvement is " Set potentiallyTriggerViewTransition to the result of calling
+ can navigation trigger a cross-document view-transition? given
+ displayedDocument, targetEntry's document, navigationType, and
+ isBrowserUINavigation. If potentiallyTriggerViewTransition is false, then: Let firePageSwapBeforeUnload be the following step: Fire the Set the ongoing navigation for navigable to null. This allows new navigations of
+ navigable to start, whereas during the traversal they were blocked. Unload a document and its descendants given
+ displayedDocument, targetEntry's document, afterPotentialUnloads, and
+ firePageSwapBeforeUnload. Otherwise, queue a global task on the
+ navigation and traversal task source given navigable's active window to run the steps: Let proceedWithNavigationAfterViewTransitionCapture be the following
+ step: Append the following session
+ history traversal steps to navigable's traversable navigable: Set the ongoing navigation for navigable to null. This allows new navigations of
+ navigable to start, whereas during the traversal they were blocked. Unload a document and its descendants given
+ displayedDocument, targetEntry's document, and afterPotentialUnloads. Let viewTransition be the result of
+ setting up a cross-document view-transition given
+ displayedDocument, targetEntry's document, navigationType, and
+ proceedWithNavigationAfterViewTransitionCapture. Fire the If viewTransition is null, then run
+ proceedWithNavigationAfterViewTransitionCapture. In the case where a view transition started, the view transitions
+ algorithms are responsible for calling
+ proceedWithNavigationAfterViewTransitionCapture. To fire the Assert: this is running as part of a task queued on displayedDocument's
+ relevant agent's event loop. Let navigation be displayedDocument's
+ relevant global object's navigation API. Let activation be null. If targetEntry's document's origin is same origin with
+ displayedDocument's origin, then:
+
+ Let destinationEntry be determined by switching on
+ navigationType: The current entry of
+ navigation The A new Set activation to a new Fire an event named
+ To activate history entry session history entry entry for
navigable navigable: Set document's has been revealed to true. Let transition be the result of
- resolving cross-document view-transition for document.ViewTransition
@view-transition
rule
Document
has a document unload timing info previous document unload timing.Document
has a boolean was created via cross-origin redirects,
+ Document
has a boolean was created via cross-origin redirects,
initially false.@view-transition
rule given
- sourceDocument returns "skip transition
"; otherwise true
@@ -101905,166 +101896,13 @@ location.href = '#foo';
-
- browser UI
"; otherwise true.ViewTransition
-or-null viewTransition:
-
-
-
-
-
- reload
"traverse
"NavigationHistoryEntry
in navigation's entry list whose session history entry is targetEntrypush
"replace
"NavigationHistoryEntry
in displayedDocument's relevant realm with its session history entry set to targetEntry.NavigationActivation
- created in displayedDocument's relevant
- realm, with
-
- pageswap
at document's
- relevant global object, using PageSwapEvent
with its activation
set to activation,
- and its viewTransition
set to
- viewTransition.
-
-
-
-
-
-
- applied
".Document
displayedDocument, a user navigation involvement
+ userNavigationInvolvement, a session history entry targetEntry,
+ a NavigationType
navigationType, and afterPotentialUnloads,
+ which is an algorithm that receives no arguments:
+
+
+ browser UI
"; otherwise false.
+
+
+
+ pageswap
event given
+ displayedDocument, targetEntry, navigationType, and
+ null.
+
+
+
+
+
+ pageswap
event given
+ displayedDocument, targetEntry, navigationType, and
+ viewTransition.pageswap
event given a
+ Document
displayedDocument, a session history entry
+ targetEntry, a NavigationType
navigationType, and a
+ ViewTransition
-or-null viewTransition:
+
+
+
+
+
+ reload
"traverse
"NavigationHistoryEntry
in navigation's entry list whose session history entry is targetEntrypush
"replace
"NavigationHistoryEntry
in displayedDocument's relevant realm with its session history entry set to targetEntry.NavigationActivation
+ created in displayedDocument's relevant
+ realm, with
+
+ pageswap
at displayedDocument's
+ relevant global object, using PageSwapEvent
with its activation
set to activation,
+ and its viewTransition
set to
+ viewTransition.
Fire an event named
pagereveal
at document's