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

Use NotAllowedError instead of SecurityError #267

Merged
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
6 changes: 3 additions & 3 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -330,7 +330,7 @@ <h2>
<p>
<em><b>failure</b></em>: Let <var>error</var> be a new
{{DOMException}}. This exception's .name should be
{{"SecurityError"}} if the user or their security settings
{{"NotAllowedError"}} if the user or their security settings
denied the application from creating a MIDIAccess instance
with the requested options, or if the error is the result of
<var>document</var> not being [=allowed to use=] the feature,
Expand Down Expand Up @@ -375,7 +375,7 @@ <h2 id="MIDIOptions">
{{requestMIDIAccess()}}, if this member is set to true, but
[=System Exclusive=] support is denied (either by policy or by
user action), the access request will fail with a
{{"SecurityError"}} error. If this support is not requested (and
{{"NotAllowedError"}} error. If this support is not requested (and
allowed), the system will throw exceptions if the user tries to
send [=System Exclusive=] messages, and will silently mask out
any [=System Exclusive=] messages received on the port.
Expand All @@ -392,7 +392,7 @@ <h2 id="MIDIOptions">
{{requestMIDIAccess()}}, if this member is set to true, but
software synthesizer support is denied (either by policy or by
user action), the access request will fail with a
{{"SecurityError"}} error. If this support is not requested, the
{{"NotAllowedError"}} error. If this support is not requested, the
system should not include any software synthesizers in the
{{MIDIAccess}} exposure of available ports.
</p>
Expand Down