diff --git a/index.html b/index.html index 843caec..e140266 100644 --- a/index.html +++ b/index.html @@ -188,12 +188,12 @@

return [=a promise rejected with=] an {{"InvalidStateError"}} {{DOMException}}. -
  • Let |window| be [=relevant global object=] of [=this=]. +
  • Let |global:Window| be [=this=]'s [=relevant global object=].
  • -
  • If |window| does not have [=transient activation=], return [=a +
  • If |global| does not have [=transient activation=], return [=a promise rejected with=] a {{"NotAllowedError"}} {{DOMException}}.
  • -
  • [=Consume user activation=] of |window|. +
  • [=Consume user activation=] of |global|.
  • Let |base:URL| be [=this=]'s relevant settings object's [=environment settings object/API base URL=]. @@ -224,11 +224,12 @@

  • Return [=this=].{{Navigator/[[sharePromise]]}} and in parallel:
      -
    1. If there are no share targets available: +
    2. If there are no share targets available, [=queue a + global task=] on the [=user interaction task source=] using + |global| to:
        -
      1. - Reject [=this=].{{Navigator/[[sharePromise]]}} - with an {{"AbortError"}} {{DOMException}}. +
      2. [=Reject=] [=this=].{{Navigator/[[sharePromise]]}} with + an {{"AbortError"}} {{DOMException}}.
      3. Set [=this=].{{Navigator/[[sharePromise]]}} to `null`.
      4. @@ -241,11 +242,12 @@

        MUST be given the option to cancel rather than choosing any of the share targets. Wait for the user's choice. -
      5. If the user chose to cancel the share operation: +
      6. If the user chose to cancel the share operation, [=queue a + global task=] on the [=user interaction task source=] using + |global| to:
          -
        1. - Reject [=this=].{{Navigator/[[sharePromise]]}} - with an {{"AbortError"}} {{DOMException}}, +
        2. [=Reject=] [=this=].{{Navigator/[[sharePromise]]}} with + an {{"AbortError"}} {{DOMException}},
        3. Set [=this=].{{Navigator/[[sharePromise]]}} to `null`.
        4. @@ -258,11 +260,11 @@

          transmit the converted data to the target.
        5. If an error occurs starting the target or transmitting the - data: + data, [=queue a global task=] on the [=user interaction task + source=] using |global| to:
            -
          1. - Reject [=this=].{{Navigator/[[sharePromise]]}} - with an {{"DataError"}} {{DOMException}}. +
          2. [=Reject=] [=this=].{{Navigator/[[sharePromise]]}} with + an {{"DataError"}} {{DOMException}}.
          3. Set [=this=].{{Navigator/[[sharePromise]]}} to `null`.
          4. @@ -273,10 +275,15 @@

          5. Once the data has either been successfully transmitted to the [=share target=], or successfully transmitted to the OS (if the transmission to the [=share target=] cannot be confirmed), - resolve [=this=].{{Navigator/[[sharePromise]]}} with - `undefined`. -
          6. -
          7. Set [=this=].{{Navigator/[[sharePromise]]}} to `null`. + [=queue a global task=] on the [=user interaction task source=] + using |global| to: +
              +
            1. [=Resolve=] [=this=].{{Navigator/[[sharePromise]]}} + with `undefined`. +
            2. +
            3. Set [=this=].{{Navigator/[[sharePromise]]}} to `null`. +
            4. +