navigator.usb
WebUSB lets a page ask to speak to USB devices directly. What a site can do with it, what it must ask you first, and what its presence alone reveals.
Checking the browser you are reading this in…
Entry in question 5: What it can plug into
What it is
WebUSB is an interface for talking to a USB device from a web page — reading from it and writing to it directly, without a driver or an installed application. It exists for hardware whose manufacturer would otherwise have to ship a desktop app for a device you plug in once a year.
What a site can do with it
Nothing without a permission prompt. A page must call for a device chooser, you must pick a specific device from a list, and only then can it communicate — and only with the device you picked. Classes of device the browser considers too sensitive are excluded from the chooser entirely. What the property's mere presence tells a site is that this is a Chromium desktop build, because nothing else ships it.
Check it yourself
Open your browser's developer tools, go to the console, and paste this. Nothing is sent anywhere; the answer comes from the browser you are reading this in.
!!navigator.usb The full path recorded by the walk is navigator.usb, and that is the string the leaflet prints beside this entry.
What the answer is on an ordinary browser
Written by hand for each of the three engines, because a table generated from one sentence would be worth nothing to the person reading it.
- Chrome
- Present on desktop from Chrome 61. Absent on Android in most configurations, and absent on iOS.
- Firefox
- Absent. Mozilla considers the interface harmful and has said so formally.
- Safari
- Absent. Apple's position is the same.
If your browser is not present, the leaflet prints this instead of dimming the line: Not present. Sites checking for direct USB access find nothing.
Where it sits in the leaflet
This is one of 6 entries in question 5, what it can plug into. The leaflet reads all 42 entries in one press and prints each answer beside the question, with the property name next to it so you can check any line.
Read my browser · navigator.createAuctionNonce · navigator.hid