[web-midi-api] DOMError for the system returning an error to initialize MIDI system on requestMIDIAccess (#77)

In the spec, 4.1.1 Methods; requestMIDIAccess, step 9,

it said that DOMError can be "SecurityError" or "NotSupportedError". But I think both are not reasonable when the OS or some underlying systems return an error to initialize MIDI systems.

I chatted with other engineers working on filesystem API, and now I feel "InvalidStateError" sounds reasonable and consistent with other APIs.

WDYT?

---
Reply to this email directly or view it on GitHub:
https://github.com/WebAudio/web-midi-api/issues/77

Received on Thursday, 29 August 2013 03:09:06 UTC