File tree 1 file changed +22
-0
lines changed
1 file changed +22
-0
lines changed Original file line number Diff line number Diff line change @@ -137,6 +137,11 @@ <h4>
137
137
|data:ShareData|, run the following steps:
138
138
</ p >
139
139
< 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 >
140
145
< li > Let |window| be [=relevant global object=] of [=this=].
141
146
</ li >
142
147
< li > If |window| does not have [=transient activation=], return [=a
@@ -387,6 +392,23 @@ <h3>
387
392
</ p >
388
393
</ section >
389
394
</ 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 >
390
412
< section class ="informative ">
391
413
< h2 >
392
414
Accessibility considerations
You can’t perform that action at this time.
0 commit comments