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

Integrate with Permissions #219

Merged
merged 6 commits into from
Oct 21, 2021
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
46 changes: 34 additions & 12 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -31,11 +31,14 @@
wgPatentURI: "https://www.w3.org/2004/01/pp-impl/46884/status",
previousPublishDate: "2013-11-26",
previousMaturity: "WD",
xref: "web-platform",
xref: {
profile: "web-platform",
specs: ["hr-time", "permissions", "permissions-policy"],
}
};
</script>
</head>
<body data-cite="hr-time permissions-policy">
<body>
<section id="abstract">
<p>
Some user agents have music devices, such as synthesizers, keyboard and
Expand Down Expand Up @@ -155,19 +158,38 @@ <h2>
</h2>
<section data-link-for="Navigator">
<h2>
Permissions Policy Integration
Permissions Integration
</h2>
<p>
{{requestMIDIAccess()}} is a <a>policy-controlled feature</a>, as
defined by [[[Permissions-Policy]]].
</p>
<p>
The feature name for {{requestMIDIAccess()}} is <dfn data-lt=
"midi-fp" data-lt-nodefault="">`midi`</dfn>.
The Web Midi API is a [=powerful feature=] that is identified
by the [=powerful feature/name=] <a>"midi"</a>. It defines
the following:
</p>
<dl>
<dt>
[=powerful feature/permission descriptor type=]
</dt>
<dd>
<pre class="idl">
dictionary MidiPermissionDescriptor : PermissionDescriptor {
boolean sysex = false;
};
</pre>
<p>
`{name: "midi", sysex: true}` is [=PermissionDescriptor/stronger than=] `{name:
"midi", sysex: false}`.
</p>
</dd>
</dl>
</section>
<section data-link-for="Navigator">
<h2>
Permissions Policy Integration
</h2>
<p>
The <a>default allowlist</a> for {{requestMIDIAccess()}} is
`["self"]`.
The Web Midi API defines a [=policy-controlled feature=] named
<dfn class="permission">"midi"</dfn> which has a
<a>default allowlist</a> of `'self'`.
</p>
</section>
<section data-dfn-for="Navigator">
Expand All @@ -176,7 +198,7 @@ <h2>
</h2>
<pre class="idl">
partial interface Navigator {
[SecureContext]
[SecureContext]
Promise &lt;MIDIAccess&gt; requestMIDIAccess(optional MIDIOptions options = {});
};
</pre>
Expand Down