navigator.hid
WebHID reaches human-interface devices — keyboards, gamepads, custom controllers — that no other interface can describe. What it needs and what it exposes.
Checking the browser you are reading this in…
Entry in question 5: What it can plug into
What it is
WebHID handles the long tail of input hardware: the devices that speak the human-interface protocol but that no standard browser interface knows how to describe. Stream decks, flight controllers, specialist keyboards, laboratory foot pedals.
What a site can do with it
Nothing before you choose a device from a browser-drawn chooser. Once you have, the page can read raw reports from it and send reports back. Devices the browser treats as protected — an ordinary keyboard among them — are excluded, because a page reading raw keyboard reports would be a keylogger.
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.hid The full path recorded by the walk is navigator.hid, 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 89.
- Firefox
- Absent.
- Safari
- Absent.
If your browser is not present, the leaflet prints this instead of dimming the line: Not present. Sites checking for direct access to input devices 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.