diff --git a/source b/source index 4a9eed055b7..d4a53ab97c1 100644 --- a/source +++ b/source @@ -77169,8 +77169,8 @@ dictionary DragEventInit : MouseEventInit { -
  • Set up a browsing context environment settings object with realm - execution context, and let settingsObject be the result.

  • +
  • Set up a window environment settings object with realm execution + context, and let settingsObject be the result.

  • Let document be a new Document, marked as an HTML document in quirks mode, whose -

    - -

    Script settings for browsing contexts

    - -

    When the user agent is required to set up a browsing context environment settings - object, given a JavaScript execution context execution context and - an optional environment reserved environment, it must run the following - steps:

    - -
      -
    1. Let realm be the value of execution context's Realm - component.

    2. - -
    3. Let window be realm's global - object.

    4. - -
    5. Let url be a copy of the URL of - window's associated - Document.

    6. - -
    7. -

      Let settings object be a new environment settings object whose - algorithms are defined as follows:

      - -
      - -
      The realm execution context
      -
      - -

      Return execution context.

      - -
      - -
      The module map
      -
      - -

      Return the module map of - window's associated - Document.

      - -
      - -
      The responsible browsing context
      -
      - -

      Return the browsing context with which window is associated.

      - -
      - -
      The responsible event loop
      -
      - -

      Return the event loop that is associated with the unit of related - similar-origin browsing contexts to which window's browsing - context belongs.

      - -
      - -
      The responsible document
      -
      - -

      Return window's associated - Document.

      - -
      - -
      The API URL character encoding
      -
      - -

      Return the current character encoding - of window's associated - Document.

      - -
      - -
      The API base URL
      -
      - -

      Return the current base URL of window's - associated Document.

      - -
      - -
      The origin
      -
      - -

      Return the origin of window's associated Document.

      - -
      - -
      The HTTPS state
      -
      - -

      Return the HTTPS state of - window's associated - Document.

      - -
      - -
      The referrer policy
      -
      - -
        -
      1. Let document be the Document with which window is - currently associated.

      2. - -
      3. While document is an iframe - srcdoc document and document's - referrer policy is the empty - string, set document to document's - browsing context's - browsing context container's node document.

      4. - -
      5. Return document's referrer - policy.

      6. -
      - -
      -
    8. - -
    9. -

      If reserved environment is given, then:

      - -
        -
      1. Set settings object's id to - reserved environment's id, - settings object's creation - URL to reserved environment's creation URL, settings object's - target browsing context to - reserved environment's target browsing context, and - settings object's active - service worker to reserved environment's active service worker.

      2. - -
      3. -

        Set reserved environment's id to - the empty string.

        - -

        The identity of the reserved environment is considered to be fully - transferred to the created environment settings object. The reserved environment - is not searchable by the environment’s id from this point on.

        -
      4. -
      -
    10. - -
    11. Otherwise, set settings object's id to a new unique opaque string, settings - object's creation URL to - url, settings object's target browsing context to null, and - settings object's active - service worker to null.

    12. - -
    13. Set realm's [[HostDefined]] field to settings object.

    14. - -
    15. Return settings object.

    16. -
    - -
    - -

    Security infrastructure for Window, WindowProxy, and Location objects

    @@ -79266,6 +79101,166 @@ callback FrameRequestCallback = void (DOMHighResTimeStampWindow object is created, the attribute must be set to the empty string. It does not do anything else.

    + +

    Script settings for Window objects

    + +

    When the user agent is required to set up a window environment settings object, + given a JavaScript execution context execution context and an optional + environment reserved environment, it must run the following steps:

    + +
      +
    1. Let realm be the value of execution context's Realm + component.

    2. + +
    3. Let window be realm's global + object.

    4. + +
    5. Let url be a copy of the URL of + window's associated + Document.

    6. + +
    7. +

      Let settings object be a new environment settings object whose + algorithms are defined as follows:

      + +
      + +
      The realm execution context
      +
      + +

      Return execution context.

      + +
      + +
      The module map
      +
      + +

      Return the module map of + window's associated + Document.

      + +
      + +
      The responsible browsing context
      +
      + +

      Return the browsing context with which window is associated.

      + +
      + +
      The responsible event loop
      +
      + +

      Return the event loop that is associated with the unit of related + similar-origin browsing contexts to which window's browsing + context belongs.

      + +
      + +
      The responsible document
      +
      + +

      Return window's associated + Document.

      + +
      + +
      The API URL character encoding
      +
      + +

      Return the current character encoding + of window's associated + Document.

      + +
      + +
      The API base URL
      +
      + +

      Return the current base URL of window's + associated Document.

      + +
      + +
      The origin
      +
      + +

      Return the origin of window's associated Document.

      + +
      + +
      The HTTPS state
      +
      + +

      Return the HTTPS state of + window's associated + Document.

      + +
      + +
      The referrer policy
      +
      + +
        +
      1. Let document be the Document with which window is + currently associated.

      2. + +
      3. While document is an iframe + srcdoc document and document's + referrer policy is the empty + string, set document to document's + browsing context's + browsing context container's node document.

      4. + +
      5. Return document's referrer + policy.

      6. +
      + +
      +
    8. + +
    9. +

      If reserved environment is given, then:

      + +
        +
      1. Set settings object's id to + reserved environment's id, + settings object's creation + URL to reserved environment's creation URL, settings object's + target browsing context to + reserved environment's target browsing context, and + settings object's active + service worker to reserved environment's active service worker.

      2. + +
      3. +

        Set reserved environment's id to + the empty string.

        + +

        The identity of the reserved environment is considered to be fully + transferred to the created environment settings object. The reserved environment + is not searchable by the environment’s id from this point on.

        +
      4. +
      +
    10. + +
    11. Otherwise, set settings object's id to a new unique opaque string, settings + object's creation URL to + url, settings object's target browsing context to null, and + settings object's active + service worker to null.

    12. + +
    13. Set realm's [[HostDefined]] field to settings object.

    14. + +
    15. Return settings object.

    16. +
    + @@ -82575,8 +82570,8 @@ State: <OUTPUT NAME=I>1</OUTPUT> <INPUT VALUE="Increment" TYPE=BUTTON O
  • -
  • Set up a browsing context environment settings object with realm - execution context and reservedEnvironment, if present, and set +

  • Set up a window environment settings object with realm execution + context and reservedEnvironment, if present, and set settingsObject to the result.

  • @@ -90619,8 +90614,8 @@ document.body.appendChild(frame)
  • Set window's associated Document to the Document.

  • -
  • Set up a browsing context environment settings object with realm - execution context.

  • +
  • Set up a window environment settings object with realm execution + context.

  • Replace the Document's singleton objects with new instances of those objects, created in window's Realm. (This