Skip to content

Rejecting the MIDI permission should use NotAllowedError, not SecurityError #261

Closed
@rebane2001

Description

@rebane2001

https://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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Needs Editshttps://speced.github.io/spec-maintenance/about/category: enhancementhttps://www.w3.org/policies/process/#class-3

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions