Skip to content

Conversation

@nikelborm
Copy link
Contributor

Motivation

From issue WebAudio/web-midi-api#261

webaudio.github.io/web-midi-api#dom-navigator-requestmidiaccess

At the moment a SecurityError (The operation is insecure.) is thrown when a user rejects a permissions prompt for MIDI access requested through the requestMIDIAccess() method, but it would make more sense to use a NotAllowedError (The request is not allowed by the user agent or the platform in the current context, possibly because the user denied permission.) for this.

Related issues and pull requests

The change in spec: WebAudio/web-midi-api@b7806b8
According to PR: WebAudio/web-midi-api#267

@nikelborm nikelborm requested review from a team as code owners November 15, 2025 11:08
@nikelborm nikelborm requested review from bsmth and removed request for a team November 15, 2025 11:08
@github-actions github-actions bot added Content:WebAPI Web API docs Content:HTTP HTTP docs size/xs [PR only] 0-5 LoC changed labels Nov 15, 2025
@github-actions
Copy link
Contributor

Preview URLs

Flaws (3)

Note! 1 document with no flaws that don't need to be listed. 🎉

URL: /en-US/docs/Web/HTTP/Reference/Headers/Permissions-Policy/midi
Title: Permissions-Policy: midi directive
Flaw count: 3

  • unknown:
    • No generic content config found
    • no blog root
    • no blog root

@sideshowbarker sideshowbarker merged commit 76159b9 into mdn:main Nov 16, 2025
7 checks passed
@sideshowbarker
Copy link
Member

@nikelborm, congrats on landing your first docs change here — welcome aboard 🎉

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Content:HTTP HTTP docs Content:WebAPI Web API docs size/xs [PR only] 0-5 LoC changed

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants