Intent to Ship: Gamepad ongamepadconnected and ongamepaddisconnected event handler attributes

24 views
Skip to first unread message

Chromestatus

unread,
8:01 AM (5 hours ago) 8:01 AM
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
No information provided

TAG review
No information provided

TAG review status
Not applicable

Risks


Interoperability and Compatibility
No information provided

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?

No information provided


Debuggability
No information provided

Will this feature be supported on all six Blink platforms (Windows, Mac, Linux, ChromeOS, Android, and Android WebView)?
No

Is this feature fully tested by web-platform-tests?
Yes
The 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
No information provided

Finch feature name
No information provided

Non-finch justification
This feature just adds another way of exposing gamepad connection/disconnection information as per spec.

Rollout plan
Will ship enabled for all users

Requires code in //chrome?
False

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

Estimated milestones

No milestones specified



Anticipated spec changes

Open questions about a feature may be a source of future web compat or interop issues. Please list open issues (e.g. links to known github issues in the project for the feature specification) whose resolution may introduce web compat/interop risk (e.g., changing to naming or structure of the API in a non-backward-compatible way).

No information provided

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

Links to previous Intent discussions
Intent to Prototype: https://groups.google.com/a/chromium.org/d/msgid/blink-dev/68d72b07.050a0220.1ba43a.0097.GAE%40google.com


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