-
Notifications
You must be signed in to change notification settings - Fork 48
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
Make getGamepads API asyncronous to support permission request #70
Comments
I don't think we can change However, given the spec text around not exposing devices without user interaction I would hope the fingerprinting risk here would be minimal (modulo implementation bugs). Is that not true in practice? |
could user activation be activated by a "granted" state via a request to the Permissions API (i.e., |
Discussed in PING during June 7th call and think that necessity of prompting is dependent on the outcomes of #71, #72, #73. If the gamepad API ends up revealing a unique ID or is accessible to embedded content, seems more likely we’ll need a prompt. |
Related w3c/permissions#200 |
How would this kind of interaction flow work in embedded contexts, such as accessing the API via Chromium Embedded Framework (CEF)? The permissions API exposes consent requests through the User Agent's UI, but something like CEF has no UI. |
An async API doesn't preclude answering it immediately without prompting the user if the application knows the answer at time of request. This could because the user has stored a permission for that origin or because the browser chooses not to prompt the user in any case (like they do now.) If a game that the user installs (either a separate application or some sort of web extension) wants to support gamepads it would be silly to prompt the user; the user already explicitly took action to 'install' the game and granted it some elevated trust in doing so. |
Closing as we think the current mitigations are sufficient (i.e., the use must interact with the gamepad to enable it). |
Gamepads are in the long tail of things that make the web a great experience but are used very infrequently. Can this API be designed to support a permission by making things like getGamepads async? UAs don't need to implement a permission, but with synchronous APIs it becomes impossible to gate releasing user information via a permission.
The text was updated successfully, but these errors were encountered: