Skip to content

Commit 2ef967a

Browse files
authored
Introduce "web-share" feature policy (#166)
resolves #151
1 parent f62dc29 commit 2ef967a

File tree

1 file changed

+22
-0
lines changed

1 file changed

+22
-0
lines changed

index.html

+22
Original file line numberDiff line numberDiff line change
@@ -137,6 +137,11 @@ <h4>
137137
|data:ShareData|, run the following steps:
138138
</p>
139139
<ol class="algorithm">
140+
<li>If the current settings object's responsible document is not
141+
<a>allowed to use</a> the "[=web-share-feature|web-share=]"
142+
permission, return [=a promise rejected with=] with a
143+
{{"NotAllowedError"}} {{DOMException}}.
144+
</li>
140145
<li>Let |window| be [=relevant global object=] of [=this=].
141146
</li>
142147
<li>If |window| does not have [=transient activation=], return [=a
@@ -387,6 +392,23 @@ <h3>
387392
</p>
388393
</section>
389394
</section>
395+
<section id="feature-policy" data-cite="feature-policy">
396+
<h2>
397+
Permission Policy integration
398+
</h2>
399+
<p>
400+
This specification defines a policy-controlled permission identified by
401+
the string "<code><dfn>web-share</dfn></code>". Its <a>default
402+
allowlist</a> is '`self`'.
403+
</p>
404+
<div class="note">
405+
<p>
406+
A <a>document</a>’s permission policy determines whether a
407+
{{Navigator/share()}} call immediately rejects with a
408+
{{"NotAllowedError"}} {{DOMException}}.
409+
</p>
410+
</div>
411+
</section>
390412
<section class="informative">
391413
<h2>
392414
Accessibility considerations

0 commit comments

Comments
 (0)