w3c / gamepad

Gamepad
https://w3c.github.io/gamepad/
Other
138 stars 49 forks source link

Require focus for initial gamepad user gesture #206

Open nondebug opened 1 month ago

nondebug commented 1 month ago

Gamepad API uses the "gamepad user gesture" as a signal that the user consents to exposing gamepad information. This makes it possible to unintentionally expose gamepad information when interacting with gamepads on another site.

The spec should be amended to require that the window is focused when the gesture is received so that access is only granted for the focused tab.