Keyboard Lock and Pointer Lock permissions
- Category
- User input
- Type
- No developer-visible change
- Status
- In developer trial (Behind a flag) (Chrome In developer trial (Behind a flag))
- Intent stage
- None
Summary
May show a permission prompt to the user when Keyboard Lock and/or Pointer Lock is requested by a website, and saves the user preferences as content settings. The settings can be queried for via the Permissions API. This helps mitigate the abusive use of the APIs.
Motivation
The permission prompt notifies the user that the website is requesting Keyboard Lock and/or Pointer Lock, and allows them to explicitly choose whether to grant or deny those capabilities. This makes it more difficult for malicious websites (e.g., tech support scam websites) to gain the capabilities and prevent the user from exiting the website.
Standards & signals
- Firefox: No signal
- Safari: No signal
- Web developers: No signals
- Tracking bug: https://issues.chromium.org/issues/314694812
Ecosystem
- Web Platform Tests: https://wpt.fyi/results/?q=keyboard-lock-and-pointer-lock-permissions
- Chrome Platform Showcase: https://chrome-platform-showcase.paulkinlan-ea.deno.net/features
- GenDN reference: https://gendn.paulkinlan-ea.deno.net/features
- chrome.dev demos search: https://www.google.com/search?q=site%3Achrome.dev+Keyboard%20Lock%20and%20Pointer%20Lock%20permissions
- MDN Web Docs: https://developer.mozilla.org/en-US/search?q=Keyboard%20Lock%20and%20Pointer%20Lock%20permissions
- Baseline status: https://webstatus.dev/?q=Keyboard%20Lock%20and%20Pointer%20Lock%20permissions