mattre...@chromium.org, chen...@chromium.org
https://github.com/WICG/webhid/blob/main/WEBHID_IN_EXTENSION_SERVICE_WORKERS_EXPLAINER.md
https://wicg.github.io/webhid/
Allows web developers to use WebHID API when responding to extension events by exposing WebHID API to Service Workers registered by browser extensions. This API will not yet be exposed to Service Workers registered by sites but the implementation experience gained by supporting the API for extensions will be valuable for such a future project.
Blink>HID
As Chrome Apps APIs chrome.hid will soon be deprecated, developers are encouraged to migrate to web apps or Chrome Extensions. For the Chrome Extension case, Manifest V3 deprecates the background page and requires developers to migrate to service workers. As a result, it is required to support WebHID in Extension Service Workers.
Gecko: No signal, we have asked for a position on WebHID in extensions (https://github.com/mozilla/standards-positions/issues/459#issuecomment-1162459878).
WebKit: No signal, opposed to the Web Serial API in general.
Web developers: Extension developers previously used WebHID and other device APIs from the background page and have requested that it continues to be available after migrating to Manifest V3.
Other signals: Extension team approves of exposing these APIs to extension service workers. (https://docs.google.com/document/d/1s01BVkz-mb18p-gwXmzhM6DdioOh0JMzx_kCJzsLd7U/edit, internal-only)
N/A. WebHID isn’t available on Android.
Devtools
No
chrome://flags/#enable-web-hid-on-extension-service-worker
Yes
https://bugs.chromium.org/p/chromium/issues/detail?id=1303195
https://bugs.chromium.org/p/chromium/issues/detail?id=1322258
106