Re: [wake-lock] What if WakeLockRequest is garbage collected?

Yes, in your example the page won't be able to release the wake lock, regardless of whether the WakeLockRequest object is garbage collected. But why would the page do this in the first place, i.e. create wake lock request and, abandon it, and then attempt to release the lock regardless? Is there a valid use case for this scenario?

-- 
GitHub Notification of comment by andrey-logvinov
Please view or discuss this issue at https://github.com/w3c/wake-lock/issues/128#issuecomment-409371049 using your GitHub account

Received on Tuesday, 31 July 2018 21:17:52 UTC