WebKit / standards-positions

WebKit's positions on emerging web specifications
https://webkit.org/standards-positions/
254 stars 23 forks source link

WebUSB on extension service workers #71

Open nondebug opened 2 years ago

nondebug commented 2 years ago

Request for position on an emerging web specification extension behavior

Note that this RFP is specifically about exposing WebUSB API to extensions, not the web in general. See here for the RFP on the web specification.

Information about the spec

Anything else we need to know

Manifest V3 deprecates the extension background page, which MV2 extensions were able to use to access powerful APIs like WebUSB. MV3 extensions are expected to use service workers for background processing. In order to provide a migration path for extensions that use WebUSB, Chromium plans to expose WebUSB (and other device APIs) to extension service workers.

Even though Apple is not considering implementing this API, we are still interested in any feedback WebKit can provide on our proposal to integrate with extension service workers.

othermaciej commented 2 years ago

Tagging @johnwilander for security/privacy considerations.

othermaciej commented 2 years ago

Adding all the same concerns tags from https://github.com/WebKit/standards-positions/issues/68 , but these concerns may be lessened for something that applies to extensions only.

othermaciej commented 2 years ago

Tagging @davidjohnson91 and @xeenon for extensions aspects of this proposal.

othermaciej commented 2 years ago

Adding concerns: venue because this document appears to only exist in a personal repo.

xeenon commented 2 years ago

We likely would not want to do it just for extensions, without WebKit supporting it in general for the web.

Extensions can already use native messaging to implement feature like this with our native APIs.