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 15:12:01 +0000
To: public-device-apis-log@w3.org
Message-ID: <issue_comment.created-518713288-1565104320-sysbot+gh@w3.org>
> [B]ut #153 made it so that when a page becomes hidden all screen locks are automatically released and not re-acquired when visibility changes. The question is whether we want to revert to the previous behavior.

One could *probably* argue for reverting to the previous behavior. I played with the new implementation earlier today, and it is a little annoying that one has to re-acquire the lock upon each visibility change. The only (unfortunately pretty dangerous) foot gun I see is people forgetting about the screen lock in absence of a visual indicator. So I think for now at least we are on the safe side when we require people to re-acquire the lock every time. 


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

This archive was generated by hypermail 2.3.1 : Tuesday, 6 August 2019 15:12:03 UTC