[Webkit-unassigned] [Bug 217664] New: No productId and vendorId returned by getGamepads API

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Tue Oct 13 12:38:24 PDT 2020


https://bugs.webkit.org/show_bug.cgi?id=217664

            Bug ID: 217664
           Summary: No productId and vendorId returned by getGamepads API
           Product: WebKit
           Version: Safari 14
          Hardware: All
                OS: Unspecified
            Status: NEW
          Severity: Major
          Priority: P2
         Component: WebKit Misc.
          Assignee: webkit-unassigned at lists.webkit.org
          Reporter: huangam at amazon.com

The navigator.getGamepads() API on Safari 14 does not return the productId and vendorId inside the "id" attribute to clearly identify the gamepad - this doesn't follow the current existing convention that chrome and FF is using. 

Steps to reproduce:
1) Connect a gamepad using bluetooth or USB
2) Open Safari and go to gamepad-tester.com
3) Press any button on the gamepad and confirm it shows up on gamepad tester
4) Open Safari's web inspector, and execute "navigator.getGamepads()"
5) Observe the response

Expected: the "id" field of the gamepad contains the vendor and product id of the gamepad (e.g. "Wireless Controller (STANDARD GAMEPAD Vendor: 054c Product: 09cc)"
Actual: the "id" field of the gamepad does not contain the vendor and product id of the gamepad (i.e. "Xbox Wireless Controller Extended Gamepad deviceId: 0")

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-unassigned/attachments/20201013/9539abc2/attachment.htm>


More information about the webkit-unassigned mailing list