157
157
{{Promise}}? < dfn > [[\sharePromise]]</ dfn >
158
158
</ dt >
159
159
< dd >
160
- The {{Navigator/[[sharePromise]]}} is a promise that represents a
161
- user's current intent to share some data with a < a > share
162
- target</ a > . It is initialized to `null`.
160
+ The [=this=]. {{Navigator/[[sharePromise]]}} is a promise that
161
+ represents a user's current intent to share some data with a
162
+ < a > share target</ a > . It is initialized to `null`.
163
163
</ dd >
164
164
</ dl >
165
165
</ section >
177
177
< a > "web-share"</ a > , return [=a promise rejected with=] a
178
178
{{"NotAllowedError"}} {{DOMException}}.
179
179
</ li >
180
- < li > If {{Navigator/[[sharePromise]]}} is not `null`, return [=a
181
- promise rejected with=] an {{"InvalidStateError"}}
180
+ < li > If [=this=]. {{Navigator/[[sharePromise]]}} is not `null`,
181
+ return [=a promise rejected with=] an {{"InvalidStateError"}}
182
182
{{DOMException}}.
183
183
</ li >
184
184
< li > Let |window| be [=relevant global object=] of [=this=].
@@ -211,17 +211,19 @@ <h4>
211
211
return [=a promise rejected with=] a {{"NotAllowedError"}}
212
212
{{DOMException}}.
213
213
</ li >
214
- < li > Set {{Navigator/[[sharePromise]]}} to be < a > a new promise</ a > .
214
+ < li > Set [=this=].{{Navigator/[[sharePromise]]}} to be < a > a new
215
+ promise</ a > .
215
216
</ li >
216
- < li > Return {{Navigator/[[sharePromise]]}} and < a > in parallel</ a > :
217
+ < li > Return [=this=].{{Navigator/[[sharePromise]]}} and < a > in
218
+ parallel</ a > :
217
219
< ol >
218
220
< li > If there are no < a > share targets</ a > available:
219
221
< ol >
220
222
< li >
221
- < a > Reject</ a > {{Navigator/[[sharePromise]]}} with an
222
- {{"AbortError"}} {{DOMException}}.
223
+ < a > Reject</ a > [=this=]. {{Navigator/[[sharePromise]]}}
224
+ with an {{"AbortError"}} {{DOMException}}.
223
225
</ li >
224
- < li > Set {{Navigator/[[sharePromise]]}} to `null`.
226
+ < li > Set [=this=]. {{Navigator/[[sharePromise]]}} to `null`.
225
227
</ li >
226
228
< li > Abort these steps.
227
229
</ li >
@@ -235,10 +237,10 @@ <h4>
235
237
< li > If the user chose to cancel the share operation:
236
238
< ol >
237
239
< li >
238
- < a > Reject</ a > {{Navigator/[[sharePromise]]}} with an
239
- {{"AbortError"}} {{DOMException}},
240
+ < a > Reject</ a > [=this=]. {{Navigator/[[sharePromise]]}}
241
+ with an {{"AbortError"}} {{DOMException}},
240
242
</ li >
241
- < li > Set {{Navigator/[[sharePromise]]}} to `null`.
243
+ < li > Set [=this=]. {{Navigator/[[sharePromise]]}} to `null`.
242
244
</ li >
243
245
< li > Abort these steps.
244
246
</ li >
@@ -252,10 +254,10 @@ <h4>
252
254
data:
253
255
< ol >
254
256
< li >
255
- < a > Reject</ a > {{Navigator/[[sharePromise]]}} with an
256
- {{"DataError"}} {{DOMException}}.
257
+ < a > Reject</ a > [=this=]. {{Navigator/[[sharePromise]]}}
258
+ with an {{"DataError"}} {{DOMException}}.
257
259
</ li >
258
- < li > Set {{Navigator/[[sharePromise]]}} to `null`.
260
+ < li > Set [=this=]. {{Navigator/[[sharePromise]]}} to `null`.
259
261
</ li >
260
262
< li > Abort these steps.
261
263
</ li >
@@ -264,9 +266,10 @@ <h4>
264
266
< li > Once the data has either been successfully transmitted to
265
267
the [=share target=], or successfully transmitted to the OS (if
266
268
the transmission to the [=share target=] cannot be confirmed),
267
- < a > resolve</ a > {{Navigator/[[sharePromise]]}} with `undefined`.
269
+ < a > resolve</ a > [=this=].{{Navigator/[[sharePromise]]}} with
270
+ `undefined`.
268
271
</ li >
269
- < li > Set {{Navigator/[[sharePromise]]}} to `null`.
272
+ < li > Set [=this=]. {{Navigator/[[sharePromise]]}} to `null`.
270
273
</ li >
271
274
</ ol >
272
275
</ li >
0 commit comments