Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
21 changes: 14 additions & 7 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -172,10 +172,16 @@ <h4>
|data:ShareData|, run the following steps:
</p>
<ol class="algorithm">
<li>If the [=current settings object=]'s [=environment settings
object/responsible document=] is not [=allowed to use=]
<a>"web-share"</a>, return [=a promise rejected with=] a
{{"NotAllowedError"}} {{DOMException}}.
<li>Let |document:Document| be the [=current settings object=]'s
[=environment settings object/responsible document=].
</li>
<li>If |document| is not [=Document/fully active=], return [=a
promise rejected with=] an {{"InvalidStateError"}}
{{DOMException}}.
</li>
<li>If |document| is not <a>allowed to use</a> <a>"web-share"</a>,
return [=a promise rejected with=] a {{"NotAllowedError"}}
{{DOMException}}.
</li>
<li>If [=this=].{{Navigator/[[sharePromise]]}} is not `null`,
return [=a promise rejected with=] an {{"InvalidStateError"}}
Expand Down Expand Up @@ -296,9 +302,10 @@ <h3>
{{ShareData}} |data:ShareData|, run the following steps:
</p>
<ol class="algorithm">
<li>If the [=current settings object=]'s [=environment settings
object/responsible document=] is not <a>allowed to use</a>
<a>"web-share"</a>, return false.
<li>Let |document:Document| be the [=current settings object=]'s
[=environment settings object/responsible document=].
</li>
<li>If |document| is not [=Document/fully active=], return false.
</li>
<li>Return the result of [=validate share data=] with |data| and
[=this=]'s [=relevant settings object=]'s [=environment settings
Expand Down