Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add permissions policy for mediasession #299

Merged
merged 1 commit into from
Sep 15, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 15 additions & 0 deletions index.bs
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,13 @@ urlPrefix: https://fetch.spec.whatwg.org/; spec: FETCH
urlPrefix: https://tc39.es/ecma262/#sec-object.; spec: WEBIDL;
type: dfn
text: freeze
urlPrefix: https://www.w3.org/TR/permissions-policy-1/; spec: PermissionsPolicy
type: dfn;
text: policy-controlled feature; url:#policy-controlled-feature
text: default allowlist; url:#policy-controlled-feature-default-allowlist
urlPrefix: https://html.spec.whatwg.org/multipage/dom.html; spec: dom
type: dfn
text: permissions policy; url:#concept-document-permissions-policy
</pre>

<h2 id="introduction">Introduction</h2>
Expand Down Expand Up @@ -1267,6 +1274,14 @@ When the <a>media session action</a> is
</li>
</ul>

<h2 id="permissions-policy">Permissions Policy Integration</h2>

This specification defines a <a>policy-controlled feature</a> identified by the
string "mediasession". Its <a>default allowlist</a> is *.

A document's <a>permissions policy</a> determines whether any content in that document is allowed to use the MediaSession API.
If disabled in the document, the User Agent MUST NOT select the document's media session as the <a>active media session</a>.

<h2 id="examples">Examples</h2>

<em>This section is non-normative.</em>
Expand Down