mattre...@chromium.org, melh...@chromium.org
https://github.com/WICG/serial/blob/main/EXPLAINER_BLUETOOTH.md
In progress
Support Bluetooth RFCOMM services in the Web Serial API. The Bluetooth RFCOMM (Radio frequency communication) protocol provides emulated RS-232 serial ports. This feature would enable applications to make connections to RFCOMM services on paired Bluetooth Classic devices using the Web Serial API.
1. Allow access to serial ports on Chrome platforms that do not map Bluetooth serial port services to serial device nodes (i.e. COM or /dev/*).
2. Allow access to Bluetooth RFCOMM services with custom (non-standard) UUIDs.
https://discourse.wicg.io/t/proposal-web-serial-api-bluetooth-support/5700
https://github.com/w3ctag/design-reviews/issues/854
Pending
Gecko: Negative (https://github.com/mozilla/standards-positions/issues/687) Previous thread: https://github.com/mozilla/standards-positions/issues/336
WebKit: Negative (https://github.com/WebKit/standards-positions/issues/199) See also: https://webkit.org/tracking-prevention/
Web developers: https://bugs.chromium.org/p/chromium/issues/detail?id=1043300.
Multiple Web developers have asked for this privately.
Other signals:
N/A
Debuggability is identical to wired serial ports.
No, the majority of this extension to the API is implemented in the browser process (connecting to Bluetooth devices through the native platform APIs) and so isn’t testable with WPT.
chrome://flags#enable-bluetooth-spp-in-serial-api
Yes, for UI and permissions management.
https://bugs.chromium.org/p/chromium/issues/detail?id=1043300
https://launch.corp.google.com/launch/4232649
For Dev Trial: M116
For Shipping: M117
https://chromestatus.com/feature/5686596809523200
Web Serial API is only implemented in Chromium. Other browser vendors have expressed negative views regarding the API and are unlikely to implement it.
This feature will not affect compatibility in existing apps. The feature only adds support for connecting to new types of devices. There are no changes for currently-supported devices.