diff --git a/source b/source index ba560b1db50..1563e37ac83 100644 --- a/source +++ b/source @@ -1637,23 +1637,25 @@ a.setAttribute('href', 'https://example.com/'); // change the content attribute
  • Let p be a new promise created in this's relevant realm.

  • +
  • Let global be this's relevant global + object.

  • +
  • Run the following steps in parallel:

    1. If nameList contains name, then queue a global task on the DOM manipulation task source given - this's relevant global object to reject p with a - TypeError, and abort these steps.

    2. + global to reject p with a TypeError, and abort these + steps.

    3. Do some potentially lengthy work.

    4. Append name to nameList.

    5. -
    6. Queue a global task on the DOM manipulation task source - given this's relevant global object to resolve p with - undefined.

    7. +
    8. Queue a global task on the DOM manipulation task source given + global to resolve p with undefined.

  • @@ -1671,23 +1673,25 @@ a.setAttribute('href', 'https://example.com/'); // change the content attribute
  • Let p be a new promise created in this's relevant realm.

  • +
  • Let global be this's relevant global + object.

  • +
  • Enqueue the following steps to nameListQueue:

    1. If nameList contains name, then queue a global task on the DOM manipulation task source given - this's relevant global object to reject p with a - TypeError, and abort these steps.

    2. + global to reject p with a TypeError, and abort these + steps.

    3. Do some potentially lengthy work.

    4. Append name to nameList.

    5. -
    6. Queue a global task on the DOM manipulation task source - given this's relevant global object to resolve p with - undefined.

    7. +
    8. Queue a global task on the DOM manipulation task source given + global to resolve p with undefined.

  • @@ -72160,6 +72164,8 @@ interface OffscreenCanvas : EventTarget {
  • Let result be a new promise object.

  • +
  • Let global be this's relevant global object.

  • +
  • Run these steps in parallel:

    @@ -72171,14 +72177,14 @@ interface OffscreenCanvas : EventTarget {
  • Queue a global task on the canvas blob serialization task source - given this's relevant global object to run these steps:

    + given global to run these steps:

    1. If file is null, then reject result with an "EncodingError" DOMException.

    2. Otherwise, resolve result with a new Blob object, created in - this's relevant realm, representing + global's relevant realm, representing file. FILEAPI

  • @@ -114024,6 +114030,10 @@ import "https://example.com/foo/../module2.mjs"; Doing so would create data races observable to JavaScript code, since after all, your algorithm steps are running in parallel to the JavaScript code.

    +

    By extension, you cannot access Web IDL's this value from steps running in + parallel, even if those steps were activated by an algorithm that does have access + to the this value.

    +

    You can, however, manipulate specification-level data structures and values from Infra, as those are realm-agnostic. They are never directly exposed to JavaScript without a specific conversion taking place (often via Web IDL). @@ -123951,20 +123961,22 @@ dictionary WorkletOptions {

  • Let promise be a new promise.

  • +
  • Let workletInstance be this.

  • +
  • Run the following steps in parallel:

    1. -

      If this's global scopes - is empty, then:

      +

      If workletInstance's global + scopes is empty, then:

        -
      1. Create a worklet global scope given this.

      2. +
      3. Create a worklet global scope given workletInstance.

      4. Optionally, create additional - global scope instances given this, depending on the specific worklet in question - and its specification.

      5. + global scope instances given workletInstance, depending on the specific worklet in + question and its specification.

      6. Wait for all steps of the creation process(es) — including those taking place within the worklet @@ -123972,7 +123984,7 @@ dictionary WorkletOptions {

    2. -
    3. Let pendingTasks be this's

      Let pendingTasks be workletInstance's global scopes's size.

    4. @@ -123980,19 +123992,19 @@ dictionary WorkletOptions {
    5. For each workletGlobalScope of - this's global scopes, - queue a global task on the networking task source given - workletGlobalScope to fetch a worklet script graph given - moduleURLRecord, outsideSettings, this's worklet - destination type, options["workletInstance's global + scopes, queue a global task on the networking task source + given workletGlobalScope to fetch a worklet script graph given + moduleURLRecord, outsideSettings, workletInstance's + worklet destination type, options["credentials"], workletGlobalScope's - relevant settings object, this's relevant settings object, workletInstance's module responses map, and the following steps given script:

      Only the first of these fetches will actually perform a network request; the ones for other WorkletGlobalScopes will reuse responses from this's responses from workletInstance's module responses map.

        @@ -124002,7 +124014,7 @@ dictionary WorkletOptions {
        1. Queue a global task on the networking task source given - this's relevant global object to perform the following + workletInstance's relevant global object to perform the following steps:

            @@ -124030,7 +124042,7 @@ dictionary WorkletOptions {
            1. Queue a global task on the networking task source given - this's relevant global object to perform the following + workletInstance's relevant global object to perform the following steps:

                @@ -124056,8 +124068,8 @@ dictionary WorkletOptions {
                1. Append moduleURLRecord to - this's added modules - list.

                2. + workletInstance's added + modules list.

                3. Set addedSuccessfully to true.

                @@ -124066,9 +124078,9 @@ dictionary WorkletOptions {
              1. Run a module script given script.

              2. -

                Queue a global task on the - networking task source given this's relevant global - object to perform the following steps:

                +

                Queue a global task on the networking task source given + workletInstance's relevant global object to perform the following + steps: