navigator.serial
Web Serial opens a serial port from a web page — the interface behind browser-based microcontroller tools. What it can reach and what it must ask for.
Checking the browser you are reading this in…
Entry in question 5: What it can plug into
What it is
An interface for reading and writing a serial port: the protocol behind microcontroller boards, scientific instruments, point-of-sale hardware and a great deal of industrial equipment that has never had a modern driver.
What a site can do with it
Nothing until you pick a port from a chooser the browser draws. Its practical use is real — flashing a development board from a web page rather than installing a toolchain is a genuine improvement — and its presence, like the rest of this group, marks the browser as a Chromium desktop build.
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.serial The full path recorded by the walk is navigator.serial, 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 serial-port 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.hid · navigator.requestMIDIAccess