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

Talking about this internally, there is an idea that I assumed that wasn't an option but could be: we could simply release the token associated with a request when the object is destroyed. It's controversial because it would expose GC to the page (as `active` would be updated) but I think that would be the cleanest solution.

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

Received on Friday, 10 August 2018 17:18:29 UTC