Skip to content

Commit

Permalink
Introduce "web-share" feature policy (#166)
Browse files Browse the repository at this point in the history
resolves #151
  • Loading branch information
ewilligers committed Jul 17, 2020
1 parent f62dc29 commit 2ef967a
Showing 1 changed file with 22 additions and 0 deletions.
22 changes: 22 additions & 0 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -137,6 +137,11 @@ <h4>
|data:ShareData|, run the following steps:
</p>
<ol class="algorithm">
<li>If the current settings object's responsible document is not
<a>allowed to use</a> the "[=web-share-feature|web-share=]"
permission, return [=a promise rejected with=] with a
{{"NotAllowedError"}} {{DOMException}}.
</li>
<li>Let |window| be [=relevant global object=] of [=this=].
</li>
<li>If |window| does not have [=transient activation=], return [=a
Expand Down Expand Up @@ -387,6 +392,23 @@ <h3>
</p>
</section>
</section>
<section id="feature-policy" data-cite="feature-policy">
<h2>
Permission Policy integration
</h2>
<p>
This specification defines a policy-controlled permission identified by
the string "<code><dfn>web-share</dfn></code>". Its <a>default
allowlist</a> is '`self`'.
</p>
<div class="note">
<p>
A <a>document</a>’s permission policy determines whether a
{{Navigator/share()}} call immediately rejects with a
{{"NotAllowedError"}} {{DOMException}}.
</p>
</div>
</section>
<section class="informative">
<h2>
Accessibility considerations
Expand Down

0 comments on commit 2ef967a

Please sign in to comment.