diff --git a/source b/source index eb7730afdb1..96bdd896f83 100644 --- a/source +++ b/source @@ -82005,9 +82005,18 @@ popup4.close(); otherwise embedder's relevant settings object's top-level origin.

+
  • Let crossSiteAncestorFlag be false if embedder is null; otherwise + embedder's cross-site ancestor + flag.

  • + +
  • If crossSiteAncestorFlag is false, embedder is not null, and + origin is not same site with embedder's origin, then set crossSiteAncestorFlag + to true.

  • +
  • Set up a window environment settings object with about:blank, - realm execution context, null, topLevelCreationURL, and - topLevelOrigin.

  • + realm execution context, null, topLevelCreationURL, + topLevelOrigin, and crossSiteAncestorFlag.

  • Let loadTimingInfo be a new document load timing info with its navigation start time set to the result of calling coarsen time @@ -84300,8 +84309,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 + crossSiteAncestorFlag, run these steps:

    1. Let realm be the value of execution context's Realm @@ -84410,8 +84419,10 @@ interface BarProp {

    2. 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.

    3. + URL to topLevelCreationURL, settings object's top-level + origin to topLevelOrigin, and settings object's cross-site ancestor flag to + crossSiteAncestorFlag.

    4. Set realm's [[HostDefined]] field to settings object.

    @@ -89817,6 +89828,8 @@ interface Location { // but see also

    Set topLevelCreationURL to parentEnvironment's top-level creation URL and topLevelOrigin to parentEnvironment's top-level origin.

  • + +
  • Set crossSiteAncestorFlag to parentEnvironment's cross-site ancestor flag.

  • + +
  • If crossSiteAncestorFlag is false and parentEnvironment's + origin is not same site + with currentURL's origin, then set + crossSiteAncestorFlag to true.

  • @@ -89837,8 +89858,9 @@ interface Location { // but see also
    target browsing context is browsingContext, creation URL is currentURL, top-level creation URL is - topLevelCreationURL, and top-level origin is - topLevelOrigin.

    + topLevelCreationURL, top-level origin is + topLevelOrigin, and + cross-site ancestor flag is crossSiteAncestorFlag.

    The created environment's active service worker is set in @@ -90462,6 +90484,8 @@ interface Location { // but see also origin.

    +
  • Let crossSiteAncestorFlag be false.

  • +
  • If browsingContext is not a top-level browsing context, then:

    @@ -90474,13 +90498,22 @@ interface Location { // but see also
    cross-site ancestor flag.

  • + +
  • If crossSiteAncestorFlag is false and navigationParams's origin is not same site with + parentEnvironment's origin, + then set crossSiteAncestorFlag to true.

  • Set up a window environment settings object with creationURL, realm execution context, navigationParams's reserved environment, - topLevelCreationURL, and topLevelOrigin.

  • + topLevelCreationURL, topLevelOrigin, and + crossSiteAncestorFlag.

    This is the usual case, where the new Document we're about to @@ -92834,6 +92867,15 @@ interface BeforeUnloadEvent : Event { involved.

    +
    A cross-site + ancestor flag
    +

    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 cross-site + ancestor flag of its creator.

    +
    A target browsing context

    Null or a target browsing context for a 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 cross-site ancestor flag + to outside settings's + cross-site ancestor flag.

  • If worker global scope is a DedicatedWorkerGlobalScope object, then set settings object's top-level origin to outside