Skip to content

Commit

Permalink
add 'midi' feature
Browse files Browse the repository at this point in the history
Controls access to requestMIDIAccess method and defaults to enabled for
top-level browsing context. Nested contexts are default off; parent
browsing context must explicitly enable the feature.
  • Loading branch information
igrigorik committed Aug 16, 2016
1 parent 0ba445c commit a1ae5dd
Showing 1 changed file with 26 additions and 0 deletions.
26 changes: 26 additions & 0 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -442,6 +442,15 @@ <h2>Features</h2>
<td>`null`</td>
<td>Controls access to [Geolocation interface].</td>
</tr>
<tr>
<td>
<a>midi</a>
</td>
<td>`self`</td>
<td>`null`</td>
<td>`null`</td>
<td>Controls access to [requestMIDIAccess method].</td>
</tr>
<tr>
<td>
<a>notifications</a>
Expand Down Expand Up @@ -556,6 +565,22 @@ <h2><dfn>`geolocation`</dfn></h2>
</li>
</ol>
</section>
<section>
<h2><dfn>`midi`</dfn></h2>
<pre class="idl">
partial interface Navigator {
[Feature=midi] Promise<MIDIAccess> requestMIDIAccess (optional MIDIOptions options);
};</pre>
<p>The <a>midi</a> keyword controls whether the [requestMIDIAccess method] ([[!WEBMIDI]]) is [exposed] for [current global
object].</p>
<ol>
<li>The default <a>enable policy</a> is `self` for [top-level
browsing context], and `null` for [nested browsing context].
</li>
<li>The default <a>disable policy</a> is `null`.
</li>
</ol>
</section>
<section>
<h2><dfn>`notifications`</dfn></h2>
<pre class="idl">
Expand Down Expand Up @@ -1018,3 +1043,4 @@ <h2>Privacy and Security</h2>
[Notification interface]: https://www.w3.org/TR/notifications/#notification
[PaymentRequest interface]: https://www.w3.org/TR/payment-request/#paymentrequest-interface
[PushManager interface]: https://w3c.github.io/push-api/#idl-def-PushManager
[requestMIDIAccess method]: http://webaudio.github.io/web-midi-api/#requestMIDIAccess

0 comments on commit a1ae5dd

Please sign in to comment.