Skip to content

Commit

Permalink
Added permission policy check in the algorithm
Browse files Browse the repository at this point in the history
  • Loading branch information
Simon Hangl committed Jul 31, 2024
1 parent 7c01e56 commit 0906c15
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -163,6 +163,12 @@ <h2>
<li>
<p>Let <var>p</var> be a new promise.</p>
</li>
<li>
If [=this=]'s [=relevant global object=]'s [=associated Document=] is
not [=allowed to use=] the [=policy-controlled feature=] named "all-screens-capture", [=reject=]
<var>p</var> with a new {{DOMException}} object whose {{DOMException/name}} attribute has the
value {{NotAllowedError}} and return <var>p</var>.
</li>
<li>
<p>Run the following steps in parallel:</p>
<ol>
Expand Down Expand Up @@ -271,8 +277,7 @@ <h1 id="feature-policy-integration">Permissions Policy Integration</h1>
any content in that document is allowed to use
{{MediaDevices/getAllScreensMedia}}. If disabled in any document, no content
in the document will be [=allowed to use=]
{{MediaDevices/getAllScreensMedia}}. In addition, only origins allowlisted by
an administator or device owner are [=allowed to use=] {{MediaDevices/getAllScreensMedia}}.
{{MediaDevices/getAllScreensMedia}}.
</p>
</div>
</section>
Expand Down

0 comments on commit 0906c15

Please sign in to comment.