127
127
< a data-cite ="!HTML#document-base-url "> base URL</ a > , and no
128
128
< var > encoding override</ var > .
129
129
</ li >
130
- < li > If < var > url</ var > is failure, reject < var > p</ var > with
130
+ < li > If < var > url</ var > is failure, < a data-cite =
131
+ "!promises-guide#reject-promise "> reject</ a > < var > p</ var > with
131
132
< a data-cite =
132
133
"!WEBIDL#exceptiondef-typeerror "> < code > TypeError</ code > </ a > ,
133
134
and abort these steps.
@@ -141,38 +142,45 @@ <h4>
141
142
</ li >
142
143
< li > If the method call was not < a data-cite =
143
144
"!HTML#triggered-by-user-activation "> triggered by user
144
- activation</ a > , reject < var > p</ var > with < a data-cite =
145
+ activation</ a > , < a data-cite =
146
+ "!promises-guide#reject-promise "> reject</ a > < var > p</ var > with
147
+ < a data-cite =
145
148
"!WEBIDL#securityerror "> < code > SecurityError</ code > </ a > , and abort
146
149
these steps.
147
150
</ li >
148
151
< li >
149
152
< a data-cite ="!HTML#in-parallel "> In parallel</ a > :
150
153
< ol >
151
- < li > If there are no < a > share targets</ a > available, reject
152
- < var > p</ var > with < a data-cite =
153
- "!WEBIDL#aborterror "> < code > AbortError</ code > </ a > , and abort
154
- these steps.
154
+ < li > If there are no < a > share targets</ a > available,
155
+ < a data-cite ="!promises-guide#reject-promise "> reject</ a > < var >
156
+ p</ var > with < a data-cite =
157
+ "!WEBIDL#aborterror "> < code > AbortError</ code > </ a > , and abort
158
+ these steps.
155
159
</ li >
156
160
< li > Present the user with a choice of one or more < a > share
157
161
targets</ a > , selected at the user agent's discretion. The user
158
162
MUST be given the option to cancel rather than choosing any of
159
163
the share targets. Wait for the user's choice.
160
164
</ li >
161
- < li > If the user chose to cancel the share operation, reject
162
- < var > p</ var > with < a data-cite =
163
- "!WEBIDL#aborterror "> < code > AbortError</ code > </ a > , and abort
164
- these steps.
165
+ < li > If the user chose to cancel the share operation,
166
+ < a data-cite ="!promises-guide#reject-promise "> reject</ a > < var >
167
+ p</ var > with < a data-cite =
168
+ "!WEBIDL#aborterror "> < code > AbortError</ code > </ a > , and abort
169
+ these steps.
165
170
</ li >
166
171
< li > Activate the chosen < a > share target</ a > , < a > convert
167
172
< var > data</ var > to a format suitable for ingestion into the
168
173
target</ a > , and transmit the converted data to the target. If
169
174
an error occurs starting the target or transmitting the data,
170
- reject < var > p</ var > with < a data-cite =
171
- "!WEBIDL#aborterror "> < code > AbortError</ code > </ a > , and abort
172
- these steps.
175
+ < a data-cite ="!promises-guide#reject-promise "> reject</ a > < var >
176
+ p</ var > with < a data-cite =
177
+ "!WEBIDL#aborterror "> < code > AbortError</ code > </ a > , and abort
178
+ these steps.
173
179
</ li >
174
180
< li > Once the data has been successfully transmitted to the
175
- target, resolve < var > p</ var > with < b > undefined</ b > .
181
+ target, < a data-cite =
182
+ "!promises-guide#resolve-promise "> resolve</ a > < var > p</ var > with
183
+ < b > undefined</ b > .
176
184
</ li >
177
185
</ ol >
178
186
</ li >
0 commit comments