diff --git a/source b/source index 07296f7c4ae..d7d89833dfe 100644 --- a/source +++ b/source @@ -92621,8 +92621,8 @@ interface BarProp {
To set up a window environment settings object, given a URL creationURL, a JavaScript execution context execution context, null or an environment reservedEnvironment, a URL - topLevelCreationURL, and an origin topLevelOrigin, run these - steps:
+ topLevelCreationURL, an origin topLevelOrigin, and a + boolean hasCrossSiteAncestor:Let realm be the value of execution context's Realm
@@ -92660,30 +92660,6 @@ interface BarProp {
associated Document.
If window's navigable's parent is null, then return false.
Let parentDocument be window's navigable's parent's active - document.
If parentDocument's relevant settings object's has cross-site ancestor is - true, then return true.
If parentDocument's origin
- is not same site with window's associated Document's origin, then return true.
Return false.
Return the policy container of @@ -92748,8 +92724,10 @@ interface BarProp {
Set settings object's creation URL to creationURL, settings object's top-level creation - URL to topLevelCreationURL, and settings object's top-level - origin to topLevelOrigin.
Set realm's [[HostDefined]] field to settings object.
Let hasCrossSiteAncestor be false.
If embedder is not null:
+ +If origin is same site with embedder's + relevant settings object's origin, then set hasCrossSiteAncestor + to embedder's relevant settings object's has cross-site ancestor.
Otherwise, set hasCrossSiteAncestor to true.
Set up a window environment settings object with about:blank,
- realm execution context, null, topLevelCreationURL, and
- topLevelOrigin.
Let loadTimingInfo be a new document load timing info with its navigation start time set to the result of calling coarsen time @@ -104209,6 +104203,8 @@ location.href = '#foo';
Let topLevelOrigin be null.
Let hasCrossSiteAncestor be false.
If navigable is not a top-level traversable, then:
@@ -104222,6 +104218,14 @@ location.href = '#foo';Set topLevelOrigin to parentEnvironment's top-level origin.
If parentEnvironment's origin is same site with + currentURL's origin, then set + hasCrossSiteAncestor to parentEnvironment's has cross-site ancestor.
Otherwise, set hasCrossSiteAncestor to true.
The created environment's active service worker is set in @@ -106737,6 +106743,8 @@ location.href = '#foo';
Let topLevelOrigin be navigationParams's origin.
Let hasCrossSiteAncestor be false.
If navigable's container is not null, then:
@@ -106750,13 +106758,22 @@ location.href = '#foo';Set topLevelOrigin to parentEnvironment's top-level origin.
If navigationParams's origin is same site with + parentEnvironment's origin, + then set hasCrossSiteAncestor to parentEnvironment's has cross-site ancestor.
Otherwise, set hasCrossSiteAncestor to true
Set up a window environment settings object with creationURL, realmExecutionContext, navigationParams's reserved environment, - topLevelCreationURL, and topLevelOrigin.
This is the usual case, where the new Document we're about to
@@ -108624,6 +108641,17 @@ new PaymentRequest(…); // Allowed to use
involved.
A boolean. For window environment settings + objects this will be set to true if an ancestor frame has an origin that is not same site + with the current window's origin and + otherwise false.
+For workers and worklets it should be set to the has cross-site ancestor of its + creator, but we don't gave a definition for they yet due to a circular dependencey.
Null or a target browsing context for a An origin used in security checks.
A boolean used in security checks.
If outside settings's has cross-site ancestor is - true, then return true.
If worker global scope's url's scheme is "data", then return
- true.
Return false.
Return worker global scope's SharedWorkerGlobalScope : WorkerGlobalScope unique opaque string, creation URL to worker global scope's url, top-level creation URL to null, target browsing context to - null, and active service worker - to null.
+ null, active service worker + to null, and has cross-site + ancestor to outside settings's has cross-site ancestor.If worker global scope is a Return origin.DedicatedWorkerGlobalScope object,
then set settings object's top-level origin to outside
@@ -124813,10 +124822,6 @@ interface WorkletGlobalScope {};
Return true.
Return inheritedPolicyContainer.