Replace GamepadList with sequence<Gamepad?> for navigator.getGamepads() return value |
||||
Issue descriptionhttps://w3c.github.io/gamepad/#navigator-interface-extension Blink's navigator.getGamepads() returns a GamepadList object which is behaves a lot like an array but isn't an array. Gecko's IDL matches the spec on this point. WebKit has sequence<Gamepad> (non-nullable inner type) in its IDL, I can't tell if they ever have null in the array or not.
,
Apr 6 2018
This issue has been Available for over a year. If it's no longer important or seems unlikely to be fixed, please consider closing it out. If it is important, please re-triage the issue. Sorry for the inconvenience if the bug really should have been left as Available. For more details visit https://www.chromium.org/issue-tracking/autotriage - Your friendly Sheriffbot
,
Apr 17 2018
,
Jul 19
,
Jul 19
I investigated moving to sequence<Gamepad?>, but it turns out this would require removing the .item() method as this is not exposed by V8 when interpreting a vector type as a sequence. GamepadList preserves the legacy method while presenting an interface identical to sequence<Gamepad?> so it is not critical to fix this. However, it would be good to deprecate the legacy interface to discourage use of APIs specific to our implementation. Filed crbug.com/865642 for the deprecation of the item method. |
||||
►
Sign in to add a comment |
||||
Comment 1 by mattreynolds@chromium.org
, Apr 4 2017Status: Available (was: Untriaged)