Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Proposal to integrate pointer lock with the permissions API #94

Open
takumif opened this issue May 8, 2024 · 0 comments
Open

Proposal to integrate pointer lock with the permissions API #94

takumif opened this issue May 8, 2024 · 0 comments

Comments

@takumif
Copy link

takumif commented May 8, 2024

We (on the Chrome team) are working on putting pointer lock and keyboard lock behind permission prompts (Chrome Platform Status).

One piece of feedback that we got from a first-party developer that uses keyboard lock is that they'd like to have the permission state exposed via the permissions API so that they can update their UI according to the permission state. We believe the same use case applies to pointer lock.

The pointer lock API spec mentions:

User agents may prompt for confirmation before locking, this preference may be saved as a content setting.

but does not mention the permissions API. We propose to add a section about integrating with the permissions API, similarly to how other APIs such as window management do.

@takumif takumif changed the title Proposal to add pointer lock to the permissions API Proposal to integrate pointer lock with the permissions API May 8, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant