Re: [wake-lock] Anyone implementing "system" lock? (#232)

> Calling this API beforehand would allow the UA to tell the difference between long running script that is a bug and long running scripts that are intentional. This would allow it to implement mitigations, for example against draining the user's battery, without breaking sites.

I guess what we need is an understanding of the kinds of long running tasks. Questions arise like, why is this task happening on the main thread? Could the task be handed off to the browser to do in a specialized API (instead of requesting a "system" lock)? Could be two places to start.  

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

Received on Thursday, 27 February 2020 06:10:30 UTC