3 ms·
WebUSB exists, but requires explicit permission to a specific device. I'm still not entirely comfortable with exposing that kind of API to people who have no id
by jeroenhd 3y ago
WebUSB exists, but requires explicit permission to a specific device. I'm still not entirely comfortable with exposing that kind of API to people who have no idea what USB even is, but it's a lot safer than WebGPU.
- lxgr 3y agoWebUSB is actually a really OK API from a security point of view. Most high-security-impact USB classes (e.g. HID devices, allowing keyboard input logging; mass storage devices, allowing access to local files etc.) are marked as "protected" and only available to "isolated web apps" (which at the moment don't exist yet, as far as I know).