36 features tagged with this topic.
Enabled by default (23)
Allows Isolated Web Apps to establish direct transmission control protocol (TCP) and user datagram protocol (UDP) communications with network devices and systems as well as listen to and accept incoming connections.
Also tagged: Progressive Web Apps
Extend the GamepadHapticActuator interface to expose the trigger-rumble capability in the Web for compatible gamepads.
This extension will allow web applications that take advantage of the Gamepad API to also vibrate the triggers of gamepad devices that come equipped with this functionality.
Also tagged: Progressive Web Apps
The HIDDevice forget() method allows web developers to voluntarily revoke a permission to a HIDDevice that was granted by a user.
Also tagged: Progressive Web Apps Security & Authentication
Integrates the Web Bluetooth API with Permissions Policy, which should be identified by the "bluetooth" token.
The Web Bluetooth API allows webpages to communicate with devices over Bluetooth. However, this API is not allowed to be used from cross-origin iframes. This integration enables this scenario while providing protection against unwanted access to Bluetooth capabilities, which requires the top-level document to explicitly allow a cross-origin iframe to use the API's methods.
Also tagged: Security & Authentication
Updates the underlying data source for the ReadableStream provided by a SerialPort to be a readable byte stream. This change is backwards-compatible with existing code that calls port.readable.getReader() with no parameters. Developers can detect support for BYOB readers by calling getReader({ mode: 'byob' }) as older implementations will throw a TypeError when the new parameter is passed.
BYOB (or, "bring your own buffer") readers allow the developer to specify the buffer into which data is read instead of the stream allocating a new buffer for each chunk. In addition to potentially reducing memory pressure this allows the developer to control how much data is received as the stream cannot return more than there is space for in the provided buffer. The ability to read a particular amount of data from a port makes this API more familiar to developers used to programming against the Windows and POSIX APIs for serial devices, which operate on this same "bring your own buffer" principle.
The [WebHID API](https://developer.chrome.com/docs/extensions/how-to/web-platform/webhid) enables web applications to interact with Human Interface Devices (HIDs) over USB and Bluetooth beyond standard system input mappings (such as mice, keyboards, touchscreens, and standard gamepads). Web applications can request user permission to connect to HID devices, send and receive input, output, and feature reports, and inspect report descriptors. WebHID shipped on [desktop platforms](https://developer.chrome.com/docs/capabilities/web-apis/hid-examples) (Windows, macOS, Linux, and ChromeOS) in Chrome 89.
Chrome 158 brings the existing WebHID API to Chrome on Android (relying on new OS support in Android 17 / API level 37 and later) with no changes to the web-exposed API surface.
Popular uses today include customizing mechanical keyboards, keypads, and gaming mice, calibrating gamepads, and integrating hardware headset call controls in call centers.
WebView is not supported, as it does not have a device chooser UI or permissions UX controls.
This feature can be controlled using the following enterprise policies:
* [DefaultWebHidGuardSetting](https://chromeenterprise.google/policies/#DefaultWebHidGuardSetting)
* [WebHidAllowAllDevicesForUrls](https://chromeenterprise.google/policies/#WebHidAllowAllDevicesForUrls)
* [WebHidAllowDevicesForUrls](https://chromeenterprise.google/policies/#WebHidAllowDevicesForUrls)
* [WebHidAllowDevicesWithHidUsagesForUrls](https://chromeenterprise.google/policies/#WebHidAllowDevicesWithHidUsagesForUrls)
* [WebHidAskForUrls](https://chromeenterprise.google/policies/#WebHidAskForUrls)
* [WebHidBlockedForUrls](https://chromeenterprise.google/policies/#WebHidBlockedForUrls)
For more details, see [Set ChromeOS devices policies](https://support.google.com/chrome/a/answer/1375678) in the Chrome Enterprise and Education Help Center.
Also tagged: Progressive Web Apps Security & Authentication
Following the recent HIDDevice forget() addition[1] to the web platform, the USBDevice forget() method allows web developers to voluntarily revoke a permission to a USBDevice that was granted by a user.
[1] https://groups.google.com/a/chromium.org/g/blink-dev/c/Fk-IJF63UWc
Also tagged: Progressive Web Apps Security & Authentication
Allows web sites to communicate over GATT with nearby user-selected Bluetooth devices in a secure and privacy-preserving way.
Status in Chrome is more complicated than can be captured by this form. In Chrome 56, this shipped on Android, ChromeOS, and macOS. In Chrome 70 it is shipping on Windows 10. For earlier versions of Windows and Linux, it is still behind a flag (chrome://flags/#enable-experimental-web-platform-features).
Also tagged: Media & Real-time Communication Privacy & Identity
The "exclusionFilters" option in navigator.bluetooth.requestDevice() allows web developers to exclude some devices from the browser picker. It can be used to exclude devices that match a broader filter but are unsupported.
getAvailability() returns a promise that resolves with true if the user agent is running on a system that has a Bluetooth radio and false otherwise. The powered state of the Bluetooth radio does not influence the availability because applications can prompt users to turn on the radio using requestDevice(). The availabilitychanged event can be used to detect changes in the availability of the Bluetooth radio.
Being able to filter based on manufacturer specific data (such as vendor ID and product ID) will enable e.g. manufacturer.example.com to configure/select only its own Bluetooth devices and present them to users, instead of showing unrelated Bluetooth devices in the browser picker.
Enables Bluetooth Low Energy Scanning
Implements two APIs for writing to GATT characteristics that will allow an app to ignore a response from the device or to expect a response from the device.
The currently implemented writeValue() method will remain for backwards compatibility, but is discouraged.
Also tagged: Performance & Scheduling
The Serial API provides an interface for connecting to serial devices, either through a serial port on the user’s system or removable USB and Bluetooth devices that emulate a serial port. This API has been requested by the hardware developer community, especially developers building educational tools, as a companion to the WebUSB API because operating systems require applications to communicate with USB-based serial ports using their higher-level serial API rather than the low-level USB API.
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.
This feature adds a boolean SerialPort.connected attribute. The attribute is true if the serial port is logically connected. For wired serial ports, a port is logically connected if the port is physically attached to the system. For wireless serial ports, a port is logically connected if the device hosting the port has any open connections to the host.
Previously, only wired serial ports dispatched connect and disconnect events. With this feature, Bluetooth RFCOMM serial ports will dispatch these events when the port becomes logically connected or disconnected.
This feature is intended to allow applications to detect when a Bluetooth RFCOMM serial port is available without opening the port.
The "exclusionFilters" option in navigator.hid.requestDevice() allows web developers to exclude some devices from the browser picker. It can be used to exclude devices that are known to be malfunctioning.
Also tagged: JavaScript Language
Allows web developers to use the WebHID API in service worker contexts in extensions by exposing WebHID API to extension service workers.
Also tagged: Performance & Scheduling Progressive Web Apps
WebHID is enabled inside dedicated worker contexts. This allows developers to perform heavy I/O and processing of data from a HID device on a separate thread to reduce the performance impact on the main thread.
Also tagged: Performance & Scheduling
The web platform API to support programming USB devices.
The "exclusionFilters" option in navigator.usb.requestDevice() allows web developers to exclude some devices from the browser picker. It can be used to exclude devices that match a broader filter but are unsupported.
Allows web developers to use WebUSB API when responding to extension events by exposing WebUSB 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.
Also tagged: Performance & Scheduling Progressive Web Apps
WebUSB is enabled inside dedicated worker contexts. This allows developers to perform heavy I/O and processing of data from a USB device on a separate thread to reduce the performance impact on the main thread.
Also tagged: Performance & Scheduling
Proposed (7)
Enable WebHID (navigator.hid) support in Manifest V3 extension service workers on Desktop Android, matching the behavior on other desktop platforms (Windows, macOS, Linux, and ChromeOS).
Also tagged: Performance & Scheduling Progressive Web Apps
The writeValue() method on BluetoothRemoteGATTCharacteristic is being deprecated. It is replaced by two new methods, writeValueWithResponse() and writeValueWithoutResponse(), which give developers explicit control over the type of write performed.
The original writeValue() method is ambiguous, leading to two issues for developers:
Platform Inconsistency: The behavior of writeValue() differs across platforms. For example, Chrome on Android defaults to a fast "write without response," while other platforms default to a reliable "write with response." This makes it impossible to write predictable, cross-platform compatible code.
Lack of Developer Control: Developers are best equipped to decide between a high-throughput write (e.g., for a firmware update) and a guaranteed-delivery write (e.g., for a critical command). writeValue() hides this choice, preventing developers from implementing the correct logic for their application.
Allows Isolated Web Apps to establish direct transmission control protocol (TCP) and user datagram protocol (UDP) communications with network devices and systems as well as listen to and accept incoming connections from shared /service workers.
The Direct Sockets API has been launched in Chrome 131 for window & dedicated worker contexts; this separate entry aims at expanding these to accommodate shared / service workers to achieve parity with the exposure of other networking capabilities such as fetch() or WebSockets.
See https://chromestatus.com/feature/6398297361088512 for more context.
Also tagged: Performance & Scheduling Progressive Web Apps
When a user grants a website permission to access a powerful API (specifically Bluetooth, Camera, Clipboard, DisplayCapture, Geolocation, Microphone, Serial, and USB), their consent is intended for the site, not necessarily to every third-party script running on the page. In particular, embedded ad scripts running in the main frame or same-origin iframes can currently leverage the page's permission to opportunistically access this sensitive data. The user may not be aware that an advertisement is accessing their information.
This intervention aims to better align a granted permission with user intent by preventing ad script in a context with API permission from using it, reinforcing user trust and control over their data.
Also tagged: Media & Real-time Communication Privacy & Identity Security & Authentication
Adds BluetoothRemoteGATTServer.maxWriteWithoutResponseSize, which reports the largest payload that writeValueWithoutResponse() can send in one ATT packet. A maxwritewithoutresponsesizechanged event notifies applications when Chrome observes the value change, allowing applications to size chunks without assuming a 20-byte limit.
it depends on: https://chromestatus.com/feature/5138797158334464 and will be shipped together.
implementation: https://chromium-review.googlesource.com/c/chromium/src/+/7879985
Bug: 40265040, 40686244, 40163619
BluetoothRemoteGATTServer inherits from EventTarget, exposing the standard addEventListener(), removeEventListener(), and dispatchEvent() methods. This enables connection-level events to be dispatched directly on the GATT server.
Also tagged: Progressive Web Apps
The Web Serial API provides an interface for connecting to serial devices, either through a serial port on the user’s system or removable USB and Bluetooth devices that emulate a serial port. Now it is supported on Android.
Users, especially in the educational, hobbyist and industrial sectors, connect peripheral devices to their computers that require custom software to control. For example, robotics are often used to teach computer programming and electronics in schools. This requires software which can upload code to a robot and/or control it remotely. In an industrial or hobbyist setting a piece of equipment such as a mill, laser cutter or 3D printer is controlled by a program running on a connected computer. These devices are often controlled by small microcontrollers via a serial connection.
Documentation: https://web.dev/serial/
Specification: https://wicg.github.io/serial/