Bug 1865453 [wpt PR 43240] - serial: Expose connection state for Bluetooth serial...
commit68243b249a45d75f37c3542fa5fcae7b652e47de
authorMatt Reynolds <mattreynolds@chromium.org>
Tue, 12 Mar 2024 22:29:44 +0000 (12 22:29 +0000)
committermoz-wptsync-bot <wptsync@mozilla.com>
Thu, 14 Mar 2024 08:38:29 +0000 (14 08:38 +0000)
tree2f15226670508e63bb3639cd0f20a0ff2e82741a
parent873bad88c89d455916da9dc0f831892390db2a53
Bug 1865453 [wpt PR 43240] - serial: Expose connection state for Bluetooth serial ports, a=testonly

Automatic update from web-platform-tests
serial: Expose connection state for Bluetooth serial ports

Relevant spec change: https://github.com/WICG/serial/pull/197

This CL adds a connected attribute to the SerialPort interface
that exposes the logical connection state of the serial port.
The behavior for Bluetooth serial ports is changed so that the
connect and disconnect events are dispatched when the connection
state of the Bluetooth device changes. The behavior is unchanged
for wired serial ports.

Intent to Prototype:
https://groups.google.com/a/chromium.org/g/blink-dev/c/dkz0IdP7kao

Bug: 1488031
Change-Id: I34b88246e62202c24eee08ad4a997aff7eadeebb
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/5039155
Reviewed-by: Alex Gough <ajgo@chromium.org>
Reviewed-by: John Abd-El-Malek <jam@chromium.org>
Commit-Queue: Matt Reynolds <mattreynolds@chromium.org>
Reviewed-by: Rick Byers <rbyers@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1268876}

--

wpt-commits: 3e1658abd564779970097385353b23de9ad7b5c9
wpt-pr: 43240
testing/web-platform/tests/resources/chromium/fake-serial.js