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 the Window.getScreenDetails() method will reject with a
NotAllowedErrorexception. - The Screen.isExtended property will always return
false.
Syntax
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.
- : A list of origins for which permission is granted to use the feature. See
Default policy
The default allowlist for window-management is self.
Specifications
Browser compatibility
See also
- Window Management API
- Permissions-Policy header
- Permissions Policy
来源:MDN Web Docs / Mozilla 贡献者 · 作者与贡献记录 · CC BY-SA 2.5。离线整理了版式、链接和媒体显示。
