diff --git a/source b/source index 0fd5aee694c..ecce5858cd9 100644 --- a/source +++ b/source @@ -4024,10 +4024,9 @@ a.setAttribute('href', 'https://example.com/'); // change the content attribute
ViewTransition
@view-transition
rule
The term Document {
A Document
has a document unload timing info previous document unload timing.
A Document
has a boolean was created via cross-origin redirects,
+
A Document
has a boolean was created via cross-origin redirects,
initially false.
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.@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.
-
-
-
-
-
-
-
Return "applied
".
To deactivate a document for a cross-document navigation given a
+ 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:
Let navigable be displayedDocument's + node navigable.
Let potentiallyTriggerViewTransition be false.
Let isBrowserUINavigation be true if
+ userNavigationInvolvement is "browser UI
"; otherwise false.
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 pageswap
event given
+ displayedDocument, targetEntry, navigationType, and
+ null.
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 pageswap
event given
+ displayedDocument, targetEntry, navigationType, and
+ viewTransition.
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 pageswap
event given a
+ Document
displayedDocument, a session history entry
+ targetEntry, a NavigationType
navigationType, and a
+ ViewTransition
-or-null viewTransition:
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:
+ +reload
"The current entry of + navigation
traverse
"The NavigationHistoryEntry
in navigation's entry list whose session history entry is targetEntry
push
"replace
"A new NavigationHistoryEntry
in displayedDocument's relevant realm with its session history entry set to targetEntry.
Set activation to a new NavigationActivation
+ created in displayedDocument's relevant
+ realm, with
Fire an event named
+ pageswap
at displayedDocument's
+ relevant global object, using PageSwapEvent
with its activation
set to activation,
+ and its viewTransition
set to
+ viewTransition.
To activate history entry session history entry entry for navigable navigable:
@@ -102866,7 +102880,7 @@ location.href = '#foo';Set document's has been revealed to true.
Let transition be the result of - resolving cross-document view-transition for document.
Fire an event named
pagereveal
at document's