W3C home > Mailing lists > Public > public-device-apis-log@w3.org > March 2019

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

From: Reilly Grant via GitHub <sysbot+gh@w3.org>
Date: Thu, 14 Mar 2019 17:38:46 +0000
To: public-device-apis-log@w3.org
Message-ID: <issue_comment.created-472981333-1552585125-sysbot+gh@w3.org>
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

This archive was generated by hypermail 2.4.0 : Monday, 4 July 2022 12:47:56 UTC