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

I'm a bit bias, as I edited the following, but web share's [`.share()`](https://w3c.github.io/web-share/#share-method) uses `InvalidStateError` for non-fully active. Similarly, Permissions API's [`query()`](https://www.w3.org/TR/permissions/#query-method) method also uses `InvalidStateError`. 

Searching webkit's code base, `WebLockManager`, `AudioContext`, and `XMLHttpRequest` also rely on it for non-fully active. 


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


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

Received on Thursday, 29 September 2022 00:45:47 UTC