[snap] Web Serial fails to access local device
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
chromium-browser (Ubuntu) |
Fix Released
|
Medium
|
Olivier Tilloy |
Bug Description
A javascript-based web page works fine when accessed through Chrome, fails to recognize that any devices exist when accessed from Chromium on the same Unubtu 20.04 platform.
The code includes the following snippet:
const requestOptions = {
filters: [{ usbVendorId: 0x1881 }]
};
port = await navigator.
await port.open({ baudrate: 9600 });
writer = port.writable.
reader = port.readable.
Under Chrome 84.0.4147.105 (Official Build) (64-bit), ttyACM0 device is listed in the pop-up, is selectable, and can communicate. Under Chromium 84.0.4147.105 (Official Build) snap (64-bit), the pop-up contains only "No compatible devices found" message.
Experimental Web Features flag is enabled in both browsers.
Changed in chromium-browser (Ubuntu): | |
status: | Fix Committed → Fix Released |
This is most likely the snap strict confinement that prevents communication with the serial device.
Can you please run the following command in a terminal, then run chromium and reproduce the problem, and share the output of the terminal here?
journalctl -f | grep chromium