Skip to content

Commit

Permalink
add SecureContext and allowed to use check
Browse files Browse the repository at this point in the history
  • Loading branch information
marcoscaceres committed Sep 21, 2020
1 parent dbbc9df commit a3a4319
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ <h3>
</h3>
<pre class="idl">
partial interface Navigator {
boolean canShare(optional ShareData data = {});
[SecureContext] boolean canShare(optional ShareData data = {});
[SecureContext] Promise&lt;undefined&gt; share(optional ShareData data = {});
};
</pre>
Expand Down Expand Up @@ -146,6 +146,10 @@ <h3>
|data:ShareData|, run the following steps:
</p>
<ol>
<li>If the current settings object's responsible document is not
<a>allowed to use</a> the "[=web-share-feature|web-share=]"
permission, return false.
</li>
<li>Let |base| be [=this=]'s [=relevant settings object=]'s
[=environment settings object/API base URL=].
</li>
Expand Down Expand Up @@ -179,8 +183,6 @@ <h4>
<li>If {{[[sharePromise]]}} is not `null`, return <a>a promise
rejected with</a> {{InvalidStateError}}.
</li>
<li>, return <a>a promise rejected with</a> a {{TypeError}}.
</li>
<li>Let |base:URL| be the [=this=] value's <a>relevant settings
object</a>'s [=environment settings object/api base URL=].
</li>
Expand Down

0 comments on commit a3a4319

Please sign in to comment.