Permissions-Policy: chỉ thị window-management
Khả dụng hạn chế
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.
Chỉ thị window-management của header HTTP Permissions-Policy kiểm soát việc tài liệu hiện tại có được phép sử dụng Window Management API để quản lý các cửa sổ trên nhiều màn hình hay không.
Khi chính sách này cấm việc sử dụng API:
Promiseđược trả về bởi phương thứcWindow.getScreenDetails()sẽ bị từ chối với ngoại lệNotAllowedError.- Thuộc tính
Window.screen.isExtendedsẽ luôn trả vềfalse.
Cú pháp
http
Permissions-Policy: window-management=<allowlist>;
<allowlist>-
Danh sách các nguồn gốc được cấp quyền sử dụng tính năng. Xem
Permissions-Policy> Cú pháp để biết thêm chi tiết.
Chính sách mặc định
Danh sách cho phép mặc định cho window-management là self.
Thông số kỹ thuật
| Thông số kỹ thuật |
|---|
| Window Management> # api-permission-policy-integration> |