New issue
Advanced search Search tips
Note: Color blocks (like or ) mean that a user may not be available. Tooltip shows the reason.

Issue 875861 link

Starred by 1 user

Issue metadata

Status: Duplicate
Merged: issue 770896
Owner:
please use my google.com address
Closed: Aug 20
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: Linux
Pri: 2
Type: Bug



Sign in to add a comment

Expose WebUSB to extensions

Project Member Reported by rdevlin....@chromium.org, Aug 20

Issue description

What steps will reproduce the problem?
1. Try running navigator.usb.requestDevice({filters:[]}) on a chrome-extension:// page.

What is the expected result?
USB Device chooser pops up.

What happens instead of that?
JS Error: `Uncaught (in promise) DOMException: No device selected.`

Please provide any additional information below. Attach a screenshot if
possible.
Reproduces in both extension pages without a tab (e.g., browser action popups) and full-tab extension pages (e.g., options pages).

In general, extensions should have access to all the same APIs as the web.  I can understand that the UI may be tricky for browser action popups (or worse, background pages), but we should definitely have this "just work" for full-tab extension pages.

rockot@, do you know if there's a reason this doesn't work out of the box?
 
Mergedinto: 770896
Status: Duplicate (was: Assigned)

Sign in to add a comment