I do not understand your comment, perhaps because I do not understand
snap.

/etc/udev/rules.d for this device configure it to be 666, and it works 
fine under other browsers, so you are not talking about actual device 
access, you are talking about the mapping of this real device onto some 
virtual "raw-usb" device of the snap's sandbox ?

I did what you suggested, tried from the command line before and after 
launching chromium.  I had previously also turned off apparmor for 
chromium altogether (comment #4). None of these affected the outcome.

So, please explain how I "ensure that said interface is connected" for 
the purposes of the snap sandbox.

I can use chromium successfully for accessing the device under RedHat, 
so this is specifically a Ubuntu/Chromium bug/misfeature.

-- 
You received this bug notification because you are a member of Desktop
Packages, which is subscribed to chromium-browser in Ubuntu.
https://bugs.launchpad.net/bugs/1890365

Title:
  [snap] Web Serial fails to access local device

Status in chromium-browser package in Ubuntu:
  New

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.serial.requestPort(requestOptions);
    await port.open({ baudrate: 9600 });
    writer = port.writable.getWriter();
    reader = port.readable.getReader();

  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.

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/chromium-browser/+bug/1890365/+subscriptions

-- 
Mailing list: https://launchpad.net/~desktop-packages
Post to     : [email protected]
Unsubscribe : https://launchpad.net/~desktop-packages
More help   : https://help.launchpad.net/ListHelp

Reply via email to