@@ -172,10 +172,16 @@ <h4>
172
172
|data:ShareData|, run the following steps:
173
173
</ p >
174
174
< ol class ="algorithm ">
175
- < li > If the [=current settings object=]'s [=environment settings
176
- object/responsible document=] is not [=allowed to use=]
177
- < a > "web-share"</ a > , return [=a promise rejected with=] a
178
- {{"NotAllowedError"}} {{DOMException}}.
175
+ < li > Let |document:Document| be the [=current settings object=]'s
176
+ [=environment settings object/responsible document=].
177
+ </ li >
178
+ < li > If |document| is not [=Document/fully active=], return [=a
179
+ promise rejected with=] an {{"InvalidStateError"}}
180
+ {{DOMException}}.
181
+ </ li >
182
+ < li > If |document| is not < a > allowed to use</ a > < a > "web-share"</ a > ,
183
+ return [=a promise rejected with=] a {{"NotAllowedError"}}
184
+ {{DOMException}}.
179
185
</ li >
180
186
< li > If [=this=].{{Navigator/[[sharePromise]]}} is not `null`,
181
187
return [=a promise rejected with=] an {{"InvalidStateError"}}
@@ -296,9 +302,10 @@ <h3>
296
302
{{ShareData}} |data:ShareData|, run the following steps:
297
303
</ p >
298
304
< ol class ="algorithm ">
299
- < li > If the [=current settings object=]'s [=environment settings
300
- object/responsible document=] is not < a > allowed to use</ a >
301
- < a > "web-share"</ a > , return false.
305
+ < li > Let |document:Document| be the [=current settings object=]'s
306
+ [=environment settings object/responsible document=].
307
+ </ li >
308
+ < li > If |document| is not [=Document/fully active=], return false.
302
309
</ li >
303
310
< li > Return the result of [=validate share data=] with |data| and
304
311
[=this=]'s [=relevant settings object=]'s [=environment settings
0 commit comments