@@ -172,10 +172,16 @@ <h4>
172172 |data:ShareData|, run the following steps:
173173 </ p >
174174 < 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}}.
179185 </ li >
180186 < li > If [=this=].{{Navigator/[[sharePromise]]}} is not `null`,
181187 return [=a promise rejected with=] an {{"InvalidStateError"}}
@@ -296,9 +302,10 @@ <h3>
296302 {{ShareData}} |data:ShareData|, run the following steps:
297303 </ p >
298304 < 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.
302309 </ li >
303310 < li > Return the result of [=validate share data=] with |data| and
304311 [=this=]'s [=relevant settings object=]'s [=environment settings
0 commit comments