Re: [wake-lock] SecurityError vs NotAllowedError (#159)

The WebIDL spec describes [`SecurityError`](https://heycam.github.io/webidl/#securityerror) as "the operation is insecure," and [`NotAllowedError`](https://heycam.github.io/webidl/#notallowederror) as "the request is not allowed by the user agent or the platform in the current context, possibly because the user denied permission."

This seems to clearly indicate that permission errors should generate a `NotAllowedError`.

-- 
GitHub Notification of comment by reillyeon
Please view or discuss this issue at https://github.com/w3c/wake-lock/issues/159#issuecomment-472981333 using your GitHub account

Received on Thursday, 14 March 2019 17:38:47 UTC