Permissions-Policy: window-management
Limited availability
This feature is not Baseline because it does not work in some of the most widely-used browsers.
Experimental: This is an experimental technology
Check the Browser compatibility table carefully before using this in production.
The HTTP Permissions-Policy
header window-management
directive controls whether or not the current document is allowed to use the Window Management API to manage windows on multiple displays.
Where this policy forbids use of the API:
- The
Promise
returned by theWindow.getScreenDetails()
method will reject with aNotAllowedError
exception. - The
Window.screen.isExtended
property will always returnfalse
.
Syntax
http
Permissions-Policy: window-management=<allowlist>;
<allowlist>
-
A list of origins for which permission is granted to use the feature. See
Permissions-Policy
> Syntax for more details.
Default policy
The default allowlist for window-management
is self
.
Specifications
Specification |
---|
Window Management # api-permission-policy-integration |
Browser compatibility
BCD tables only load in the browser