wake-lock
This policy controls the ability of a document to invoke the Wake
Lock API, which allows a webpage to prevent a device from going to sleep if the
user becomes idle. If disallowed in the document, a call to
Navigator.requestWakeLock()
will return a promise that rejects.
How to apply this policy
Send the following HTTP header to control the wake-lock
policy, and disallow
it on all origins:
Feature-Policy: wake-lock 'none'
Does it work?
Currently Firefox, and Chromium based browsers, such as Google Chrome, Samsung Internet,
and Opera, are the only user-agents to support Feature Policy. The minimum version that
correctly recognises the wake-lock
policy is:
Unknown
Unknown
Not supported
Not supported