Re: [screen-wake-lock] Distinguish exceptions on .request() (#352)

I don't see consensus on a resolution to that issue however I'm okay with Anne's recommendation to standardize the message value to reduce differences between browsers. Since you've proposed removing the permission every reason for the API to reject is some kind of developer error and would never be presented to the user. How about we keep using `NotAllowedError` (so I don't need to try to consider whether this change will break compatibility with what we've shipped in Chromium) and specify the messages for each of the failure types.


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


-- 
Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config

Received on Wednesday, 5 October 2022 00:13:49 UTC