thegecko/webusb

getDevices not spec-compliant

dsanders11 opened this issue · 1 comments

May create a PR for this at some point, but in the mean time creating an issue.

The current implementation of getDevices doesn't follow the steps in the spec.

The main effect of this is that it will return all devices in allowedDevices, which is incorrect, as this will include devices not connected to the system. This means after disconnecting a device, getDevices will still list it, but open will throw an error.

Now deleting disconnected devices from the cache