WorkerNavigator: usb property

Limited availability

This feature is not Baseline because it does not work in some of the most widely-used browsers.

Secure context: This feature is available only in secure contexts (HTTPS), in some or all supporting browsers.

Note: This feature is only available in Web Workers.

The usb read-only property of the WorkerNavigator interface returns a USB object for the current document, providing access to WebUSB API functionality.

Value

A USB object.

Specifications

Specification
WebUSB API
# dom-workernavigator-usb

Browser compatibility

desktop mobile
Chrome
Edge
Firefox
Opera
Safari
Chrome Android
Firefox for Android
Opera Android
Safari on iOS
Samsung Internet
WebView Android
WebView on iOS
usb
Chrome – Partial support
Chrome 70 – 117 (Release date: 2018-10-16)
footnote Partial support
footnote Available in dedicated workers, not available in shared workers and service workers.
Chrome – Partial support
Chrome 118 (Release date: 2023-10-10)
footnote Partial support
footnote Available in dedicated workers and WebExtension service workers, not available in shared workers and normal service workers.
Edge – Partial support
Edge 79 – 117 (Release date: 2020-01-15)
footnote Partial support
footnote Available in dedicated workers, not available in shared workers and service workers.
Edge – Partial support
Edge 118 (Release date: 2023-10-13)
footnote Partial support
footnote Available in dedicated workers and WebExtension service workers, not available in shared workers and normal service workers.
Firefox – No support
Firefox
footnote No support
Opera – Partial support
Opera 57 – 103 (Release date: 2018-11-28)
footnote Partial support
footnote Available in dedicated workers, not available in shared workers and service workers.
Opera – Partial support
Opera 104 (Release date: 2023-10-23)
footnote Partial support
footnote Available in dedicated workers and WebExtension service workers, not available in shared workers and normal service workers.
Safari – No support
Safari
footnote No support
Chrome Android – Partial support
Chrome Android 70 – 117 (Release date: 2018-10-17)
footnote Partial support
footnote Available in dedicated workers, not available in shared workers and service workers.
Chrome Android – Partial support
Chrome Android 118 (Release date: 2023-10-10)
footnote Partial support
footnote Available in dedicated workers and WebExtension service workers, not available in shared workers and normal service workers.
Firefox for Android – No support
Firefox for Android
footnote No support
Opera Android – Partial support
Opera Android 49 – 78 (Release date: 2018-12-07)
footnote Partial support
footnote Available in dedicated workers, not available in shared workers and service workers.
Opera Android – Partial support
Opera Android 79 (Release date: 2023-12-06)
footnote Partial support
footnote Available in dedicated workers and WebExtension service workers, not available in shared workers and normal service workers.
Safari on iOS – No support
Safari on iOS
footnote No support
Samsung Internet – Partial support
Samsung Internet 10 – 24 (Release date: 2019-08-22)
footnote Partial support
footnote Available in dedicated workers, not available in shared workers and service workers.
Samsung Internet – Partial support
Samsung Internet 25 (Release date: 2024-04-24)
footnote Partial support
footnote Available in dedicated workers and WebExtension service workers, not available in shared workers and normal service workers.
WebView Android – No support
WebView Android
footnote
footnote WebView exposes navigator.usb, but does not support WebUSB.
footnote See bug 41441927
WebView on iOS – No support
WebView on iOS
footnote No support

Legend

Tip: you can click/tap on a cell for more information.

Full support
Full support
Partial support
Partial support
No support
No support
See implementation notes.
Has more compatibility info.

See also