From a0cdf7c03958894429523f6612245a2d0f7c184f Mon Sep 17 00:00:00 2001
From: Benjamin VanderSloot 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:
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, then set hasCrossSiteAncestor to + embedder's relevant settings object's has cross-site ancestor.
If embedder is not null, and origin is not same site + with embedder's relevant settings object's origin, then 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 +104198,8 @@ location.href = '#foo';
Let topLevelOrigin be null.
Let hasCrossSiteAncestor be false.
If navigable is not a top-level traversable, then:
@@ -104222,6 +104213,15 @@ location.href = '#foo';Set topLevelOrigin to parentEnvironment's top-level origin.
Set hasCrossSiteAncestor to parentEnvironment's has cross-site ancestor.
If parentEnvironment's origin is not same site with + navigable's active document's relevant + settings object's origin, then + set hasCrossSiteAncestor to true.
The created environment's active service worker is set in @@ -106737,6 +106739,8 @@ location.href = '#foo';
Let topLevelOrigin be navigationParams's origin.
Let hasCrossSiteAncestor be false.
If navigable's container is not null, then:
@@ -106750,13 +106754,22 @@ location.href = '#foo';Set topLevelOrigin to parentEnvironment's top-level origin.
Set hasCrossSiteAncestor to parentEnvironment's has cross-site ancestor.
If navigationParams's origin is not same site with + parentEnvironment's origin, + then 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 +108637,15 @@ 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 is set to the has cross-site + ancestor of its creator.
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 +124816,6 @@ interface WorkletGlobalScope {};
Return true.
Return inheritedPolicyContainer.
From dcb9bd4ca659b88a500b45894c5b9b9829567c2c Mon Sep 17 00:00:00 2001 From: Benjamin VanderSlootIf responseOrigin is not same site with + navigable's active document's relevant + settings object's origin, then + set request's reserved + client's has cross-site + ancestor to true.
If navigable is a top-level traversable, then:
@@ -108639,12 +108646,13 @@ new PaymentRequest(…); // Allowed to useA 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 is set to the has cross-site - ancestor of its creator.
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 is set to the has cross-site ancestor of its + creator.
If parentEnvironment's origin is not same site with - navigable's active document's relevant - settings object's origin, then - set hasCrossSiteAncestor to true.
If responseOrigin is not same site with - navigable's active document's relevant - settings object's origin, then - set request's reserved - client's has cross-site - ancestor to true.
If navigable is a top-level traversable, then:
From ed33f0235e320a36e6d74d4e3a72aa426483843c Mon Sep 17 00:00:00 2001 From: Benjamin VanderSlootIf parentEnvironment's origin is not same site with - currentURL's origin, then set + currentURL's origin, then set hasCrossSiteAncestor to true.
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 is set to the has cross-site ancestor of its +
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 is set to the has cross-site ancestor of its creator.
Let hasCrossSiteAncestor be false.
If embedder is not null, then set hasCrossSiteAncestor to - embedder's relevant settings object's has cross-site ancestor.
If embedder is not null:
-If embedder is not null, and origin is not same site - with embedder's relevant settings object's origin, then set hasCrossSiteAncestor - to true.
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,
@@ -104214,13 +104219,13 @@ location.href = '#foo';
Set topLevelOrigin to parentEnvironment's top-level origin.
Set hasCrossSiteAncestor to parentEnvironment's has cross-site ancestor.
If parentEnvironment's origin is not same site with + data-x="concept-settings-object-origin">origin
Otherwise, set hasCrossSiteAncestor to true.
Set topLevelOrigin to parentEnvironment's top-level origin.
Set hasCrossSiteAncestor to parentEnvironment's has cross-site ancestor.
If navigationParams's origin is not same site with + data-x="navigation-params-request">origin is same site with parentEnvironment's origin, - then set hasCrossSiteAncestor to true.
+ then set hasCrossSiteAncestor to parentEnvironment's has cross-site ancestor.Otherwise, set hasCrossSiteAncestor to true
For workers and worklets it should be set to the has cross-site ancestor of its - creator.
+ creator, but we don't gave a definition for they yet due to a circular dependencey.If navigationParams's origin is same site with + data-x="navigation-params-origin">origin is same site with parentEnvironment's origin, then set hasCrossSiteAncestor to parentEnvironment's has cross-site ancestor.
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.
+ creator, but we don't have a definition for that yet due to a circular dependency.