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

Re: [wake-lock] WakeLock and Page Life Cycle (#139)

From: Thomas Steiner via GitHub <sysbot+gh@w3.org>
Date: Tue, 06 Aug 2019 07:11:11 +0000
To: public-device-apis-log@w3.org
Message-ID: <issue_comment.created-518538072-1565075470-sysbot+gh@w3.org>
@cterefinko I just re-read the updated spec and stumbled upon [this note](https://w3c.github.io/wake-lock/#request-static-method) (green box at the end of the algorithm): "*The additional visibility requirement for screen wake lock is to prevent keeping the screen on when the page is not visible, such as when the browser is minimized. As this condition is transient and not under control of the web page, the specification chooses to automatically acquire and release the lock when visibility changes rather than having the page to deal with it, e.g[.] by re-requesting the lock each time the page becomes visible again.*"

GitHub Notification of comment by tomayac
Please view or discuss this issue at https://github.com/w3c/wake-lock/issues/139#issuecomment-518538072 using your GitHub account
Received on Tuesday, 6 August 2019 07:11:13 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 19:34:28 UTC