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:
- - If there are no share targets available:
+
- If there are no share targets available, [=queue a
+ global task=] on the [=user interaction task source=] using
+ |global| to:
- -
- Reject [=this=].{{Navigator/[[sharePromise]]}}
- with an {{"AbortError"}} {{DOMException}}.
+
- [=Reject=] [=this=].{{Navigator/[[sharePromise]]}} with
+ an {{"AbortError"}} {{DOMException}}.
- Set [=this=].{{Navigator/[[sharePromise]]}} to `null`.
@@ -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.
- - If the user chose to cancel the share operation:
+
- If the user chose to cancel the share operation, [=queue a
+ global task=] on the [=user interaction task source=] using
+ |global| to:
- -
- Reject [=this=].{{Navigator/[[sharePromise]]}}
- with an {{"AbortError"}} {{DOMException}},
+
- [=Reject=] [=this=].{{Navigator/[[sharePromise]]}} with
+ an {{"AbortError"}} {{DOMException}},
- Set [=this=].{{Navigator/[[sharePromise]]}} to `null`.
@@ -258,11 +260,11 @@
transmit the converted data to the target.
- 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:
- -
- Reject [=this=].{{Navigator/[[sharePromise]]}}
- with an {{"DataError"}} {{DOMException}}.
+
- [=Reject=] [=this=].{{Navigator/[[sharePromise]]}} with
+ an {{"DataError"}} {{DOMException}}.
- Set [=this=].{{Navigator/[[sharePromise]]}} to `null`.
@@ -273,10 +275,15 @@
- 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`.
-
- - Set [=this=].{{Navigator/[[sharePromise]]}} to `null`.
+ [=queue a global task=] on the [=user interaction task source=]
+ using |global| to:
+
+ - [=Resolve=] [=this=].{{Navigator/[[sharePromise]]}}
+ with `undefined`.
+
+ - Set [=this=].{{Navigator/[[sharePromise]]}} to `null`.
+
+