Comment 77 for bug 434476

Revision history for this message
In , Cpearce-t (cpearce-t) wrote :

(In reply to Justin Lebar (not reading bugmail) from comment #14)
> Comment on attachment 693331
> v2
>
> You got the wake lock API totally right except for one key point: Wake locks
> are not trusted. Any content can ask for a wake lock on anything.

Is this still the case? According to the documentation:
https://developer.mozilla.org/en-US/docs/WebAPI/Power_Management
Wake locks are only available to privileged apps. Indeed on desktop navigator.mozPower isn't visible, so I don't see why we should be worrying about trusted screen locks for desktop builds here.

mounir: It was suggested you understand wake locks, do we still need the trusted wake lock service Martin implemented in bug 830660? If not I'd like to see the patch here landed ASAP.