[wake-lock] Hide failure to acquire a screen wake lock (#247)

reillyeon has just created a new issue for https://github.com/w3c/wake-lock:

== Hide failure to acquire a screen wake lock ==
The [security and privacy considerations](https://w3c.github.io/wake-lock/#security-and-privacy-considerations) section highlights that failure to acquire a wake lock can be used as a signal to indicate that the system is in low power mode. At least in the case of screen wake locks this explicit information leakage is unnecessary. The experimental Blink implementation does not currently implement this behavior. Aside from when permission has been explicitly denied by the user wake lock acquisition always appears to succeed even if the underlying operating system denies the lock.

If a screen wake lock is not acquired then the screen could go to sleep. This is observable by the page as a `pagevisibility` event. This may be distinguishable from the user manually locking their screen because it occurs after a precise interval since the last user input.

Please view or discuss this issue at https://github.com/w3c/wake-lock/issues/247 using your GitHub account

Received on Wednesday, 23 October 2019 22:48:33 UTC