New issue
Advanced search Search tips

Issue 708201 link

Starred by 5 users

Issue metadata

Status: Available
Owner: ----
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: ----
Pri: 3
Type: Feature

Blocked on:
issue 865642

Blocking:
issue 674593


Show other hotlists

Hotlists containing this issue:
Non-Standard-IDL


Sign in to add a comment

Replace GamepadList with sequence<Gamepad?> for navigator.getGamepads() return value

Project Member Reported by foolip@chromium.org, Apr 4 2017

Issue description

https://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.
 
Labels: -Type-Bug Type-Feature
Status: Available (was: Untriaged)
Project Member

Comment 2 by sheriffbot@chromium.org, Apr 6 2018

Labels: Hotlist-Recharge-Cold
Status: Untriaged (was: Available)
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
Cc: mattreynolds@chromium.org
Status: Available (was: Untriaged)
Blockedon: 865642
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