WICG / webusb

Connecting hardware to the web.
https://wicg.github.io/webusb/
Other
1.32k stars 132 forks source link

USBDevice::configuration and related attributes should return [SameObject] #208

Closed reillyeon closed 2 years ago

reillyeon commented 2 years ago

From crbug/1274922 it would be useful for developers if the USBConfiguration, USBInterface, USBAlternateInterface and USBEndpoint instances returned by the accessors on USBDevice were === comparable. Right now this is unspecified and Chromium returns new instances every time the attributes are accessed. This is in contrast to USBDevice instances themselves which are defined as returning the same instance from requestDevice() and getDevices().