Intent to Prototype: Gamepad ongamepadconnected and ongamepaddisconnected event handler attributes

24 views
Skip to first unread message

Chromestatus

unread,
Sep 26, 2025, 8:08:54 PM (11 hours ago) Sep 26
to blin...@chromium.org, mattre...@google.com, or...@igalia.com
Contact emails
or...@igalia.com

Specification
https://w3c.github.io/gamepad/#extensions-to-the-windoweventhandlers-interface-mixin

Summary
Add ongamepadconnected and ongamepaddisconnected event handlers to the WindowEventHandlers interface mixin. This would enable support for window.ongamepad[dis]connected or document.body.ongamepad[dis]connected event handler attributes.

Blink component
Blink>GamepadAPI

Web Feature ID
gamepad

Motivation
The gamepad[dis]connected events can be subscribed to using window.addEventListener() currently. This adds the ability to use window.ongamepad[dis]connected event handler attributes as well.

Initial public proposal
None

TAG review
None

TAG review status
Not applicable

Risks


Interoperability and Compatibility
None

Gecko: Shipped/Shipping (https://bugzilla.mozilla.org/show_bug.cgi?id=1697093)

WebKit: Shipped/Shipping (https://bugs.webkit.org/show_bug.cgi?id=223860)

Web developers: No signals

Other signals:

WebView application risks

Does this intent deprecate or change behavior of existing APIs, such that it has potentially high risk for Android WebView-based applications?

None


Debuggability
None

Is this feature fully tested by web-platform-tests?
YesThe wpt test below checks for the presence of the event handler IDL attributes: https://wpt.fyi/results/gamepad/idlharness.window.html?label=experimental&label=master&aligned

Flag name on about://flags
None

Finch feature name
None

Non-finch justification
None

Requires code in //chrome?
False

Tracking bug
https://issues.chromium.org/issues/40175074

Estimated milestones

No milestones specified



Link to entry on the Chrome Platform Status
https://chromestatus.com/feature/5109540852989952?gate=5184010900865024

This intent message was generated by Chrome Platform Status.
Reply all
Reply to author
Forward
0 new messages