I am looking into implementing WebUSB on Dedicated and Shared Workers. The current design is to prevent the requestDevice() method of WebUSB from being accessible within a worker context because requestDevice() produces a chooser that the user can use to select a USB device to connect to. However, I am wondering how difficult it would be to allow a worker to call requestDevice() and send the chooser to appear in the page that started the worker? If it is possible to do this, then for a Shared Worker, many pages from the same origin can be connected to it, what would be the best way to handle showing the chooser to the user in this case?
This is the link to the Intent to Implement on blink-dev@: https://groups.google.com/a/chromium.org/forum/#!topic/blink-dev/MReOVYgRpKk
Thank you,
Ovidio Henriquez