Feature-Policy: screen-wake-lock

Feature-Policy: screen-wake-lock

Experimental: This is an experimental technology
Check the Browser compatibility table carefully before using this in production.

The HTTP Feature-Policy header screen-wake-lock directive controls whether the current document is allowed to use Screen Wake Lock API to indicate that device should not dim or turn off the screen.

Note: In earlier specification drafts this directive was called wake-lock")}}.

Syntax

Feature-Policy: screen-wake-lock <allowlist>;
<allowlist>

A list of origins for which the feature is allowed. See Feature-Policy.

Default policy

Default allow list for screen-wake-lock is 'self'.

Specifications

Specification Status Comment
Permissions Policy Editor's Draft Initial definition.
Screen Wake Lock API Editor's Draft Initial definition of screen-wake-lock feature directive.

Browser compatibility

Desktop Mobile
Chrome Edge Firefox Internet Explorer Opera Safari WebView Android Chrome Android Firefox for Android Opera Android Safari on IOS Samsung Internet
screen-wake-lock
No
No
No
No
No
No
No
No
No
No
No
No

See also

© 2005–2021 MDN contributors.
Licensed under the Creative Commons Attribution-ShareAlike License v2.5 or later.
https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Feature-Policy/screen-wake-lock