diff --git a/source b/source index 246e97db5f3..6d431c0c2cb 100644 --- a/source +++ b/source @@ -76904,25 +76904,16 @@ dictionary DragEventInit : MouseEventInit {
  • Let browsingContext be a new browsing context.

  • -

    Call the JavaScript InitializeHostDefinedRealm() abstract operation - with the following customizations:

    +

    Create a new JavaScript realm with the following customizations:

    -
  • -
  • -

    Let realm execution context be the running JavaScript execution - context.

    - -

    This is the JavaScript execution context created in the previous - step.

    +

    Let realm execution context be the result.

  • Set up a window environment settings object with realm execution @@ -82279,24 +82270,16 @@ interface Location { // but see also InitializeHostDefinedRealm() abstract operation - with the following customizations:

    +

    Create a new JavaScript realm with the following customizations:

    -
  • - -
  • -

    Let realm execution context be the running JavaScript execution - context.

    -

    This is the JavaScript execution context created in the previous - step.

    +

    Let realm execution context be the result.

  • Set up a window environment settings object with realm execution @@ -87476,7 +87459,7 @@ interface ApplicationCache : EventTarget { field of a JavaScript realm.

    In this specification, all JavaScript - realms are initialized with are created with global objects that are either Window or WorkerGlobalScope objects.

    @@ -87494,7 +87477,7 @@ interface ApplicationCache : EventTarget { Realm's global object.

  • Each global object in this specification is created during the initialization of a corresponding JavaScript + data-x="create a new JavaScript realm">creation of a corresponding JavaScript realm, known as the global object's Realm.

  • @@ -87513,6 +87496,28 @@ interface ApplicationCache : EventTarget { settings object">the environment settings object's global object.

    +

    To create a new JavaScript realm, optionally with instructions to create a global + object or a global this binding (or both), the following steps are taken:

    + +
      +
    1. Perform InitializeHostDefinedRealm() + with the provided customizations for creating the global object and the global this + binding.

    2. + +
    3. +

      Let realm execution context be the running JavaScript execution + context.

      + +

      This is the JavaScript execution context created in the previous + step.

      +
    4. + +
    5. Remove realm execution context from the JavaScript execution context + stack.

    6. + +
    7. Return realm execution context.
    8. +
    +

    When defining algorithm steps throughout this specification, it is often important to indicate @@ -90628,30 +90633,22 @@ document.body.appendChild(frame) document, without firing any mutation events.

  • -

    Call the JavaScript InitializeHostDefinedRealm() abstract operation - with the following customizations:

    +

    Create a new JavaScript realm with the following customizations:

    +

    Let realm execution context be the result.

    +

    This is not universally implemented and can perhaps be removed; see issue #1698.

  • -
  • -

    Let realm execution context be the running JavaScript execution - context.

    - -

    This is the JavaScript execution context created in the previous - step.

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

  • @@ -97162,23 +97159,15 @@ interface SharedWorkerGlobalScope : WorkerGlobalScope { nested worker), then set parent worker global scope to owner.

  • -

    Call the JavaScript InitializeHostDefinedRealm() abstract - operation with the following customizations:

    +

    Create a new JavaScript realm with the following customization:

    -
  • -
  • -

    Let realm execution context be the running JavaScript execution - context.

    - -

    This is the JavaScript execution context created in the previous - step.

    +

    Let realm execution context be the result.

  • @@ -97186,8 +97175,7 @@ interface SharedWorkerGlobalScope : WorkerGlobalScope { object of realm execution context's Realm component.

    This is the DedicatedWorkerGlobalScope or - SharedWorkerGlobalScope object created when calling InitializeHostDefinedRealm.

    + SharedWorkerGlobalScope object created in the previous step.

  • Set up a worker environment settings object with realm execution