Open timtribers opened 3 years ago
Same problem here with NotAllowedError: Wake Lock permission request denied
same problem for me, Error: NotAllowedError: Wake Lock permission request denied
Same issue here, getting NotAllowedError: Wake Lock permission request denied
When running my nosleep enabled site within in a cross-domain
NotAllowedError, Failed to execute 'request' on 'WakeLock': Access to Screen Wake Lock features is disallowed by permissions policy
Uncaught (in promise) DOMException: Failed to execute 'request' on 'WakeLock': Access to Screen Wake Lock features is disallowed by permissions policy
Expected Behavior
Silently fail, while falling back to other methods.
Actual Behavior
I assume this occurred because the browser is set to block 3rd party cookies (or possibly because I have CSP misconfigured) - I haven't bottomed this out yet. However, the concern is more that the error should be caught and nosleep fallback to another method.
How Do We Reproduce?
Run noseleep within an iframe and/or without WakeLock permission.