152 features tagged with this topic.
Enabled by default (59)
The AudioWorklet allows developers to supply JavaScript to process audio on the audio rendering thread. This processing mechanism ensures the synchronous execution of the author code with other built-in AudioNodes in the audio graph.
The AudioWorklet is designed to replace ScriptProcessorNode. ScriptProcessorNode will be deprecated once AudioWorklet is shipped.
Also tagged: JavaScript Language Media & Real-time Communication
Add RTP timestamp to RTCRtpReceiver.RTCRtpContributingSource. This is additional metadata to the existing RTP source.
Also tagged: Media & Real-time Communication
Adds news Object.groupBy(iterable, groupCallback) and Map.groupBy(iterable, groupCallback) to perform a grouping or bucketing operation. The Object method returns a plain object, where the groups are property keys. The Map method returns a Map, where the keys can be arbitrary values.
Also tagged: JavaScript Language
Adds the ArrayBuffer.prototype.transfer method, which copies the receiver buffer, detaches the receiver, then returns the copy. This adds a JS API for what is possible via structured cloning.
Also adds ArrayBuffer.prototype.transferToFixedLength and the ArrayBuffer.prototype.detached getter.
This is a TC39 proposal.
Also tagged: JavaScript Language
Adds the Atomics.pause method to hint the CPU that the current code is executing a spinlock.
Also tagged: JavaScript Language
Adds Atomics.waitAsync, the async version of Atomics.wait. Atomics.waitAsync allows programmers to wait on a SharedArrayBuffer location in the same fashion as Atomics.wait but returns a Promise instead.
Also tagged: JavaScript Language Performance & Scheduling
A new "Automatic Fullscreen" content setting permits Element.requestFullscreen() without a user gesture, and permits browser dialogs to appear without exiting fullscreen.
The setting is blocked by default. Sites can query for permission (starting in M128), but cannot prompt. New UI controls are limited to Chrome's settings pages [1] and the site info bubble. Users can allow Isolated Web Apps [2], and enterprise admins can allow additional origins with the AutomaticFullscreenAllowedForUrls policy.
Combined with Window Management permission [3] and unblocked popups [4], this unlocks valuable fullscreen capabilities:
- Open a fullscreen popup on another display, from one gesture
- Show fullscreen content on multiple displays from one gesture
- Show fullscreen content on a new display, when it's connected
- Swap fullscreen windows between displays with one gesture
- Show fullscreen content after user gesture expiry or consumption
[1] chrome://settings/content/automaticFullScreen and site details pages
[2] User control is initially scoped to security-sensitive apps; see https://chromestatus.com/feature/5146307550248960
[3] For multi-screen window placement features; see https://chromestatus.com/feature/5252960583942144
[4] To similarly permit window.open() without a user gesture; see chrome://settings/content/popups
Also tagged: Progressive Web Apps Security & Authentication
The Barcode Detection API is a subset of the Shape Detection API which provides the ability to detect and decode barcodes in an image provided by script. The image may come from any type of image buffer source such as an <image>, <video> or <canvas> tag.
Some native platforms include built-in libraries for performing text detection and optical character recognition (OCR) in images. The availability of these libraries means that developers do not need to include a large third party library.
Also tagged: Media & Real-time Communication
Folks in Google's anti-malvertising team would like to be able to prevent sandboxed frames from popping up confusing, modal messages to users. This includes things like `alert()`, `confirm()`, and `prompt()` (and `print()` (and maybe authentication dialogs)).
Also tagged: Security & Authentication
CSS Module Scripts are an extension of the ES Script Modules system that allows web developers to load CSS into a component definition in a manner that interacts seamlessly with other module types:
import styleSheet from "./styles.css" assert { type: "css" };
Also tagged: JavaScript Language
This feature introduces a new CSS property view-transition-class which allows the developer to specify one or more view transition classes. The developer can then select the ViewTransition pseudo elements using these classes (e.g. ::view-transition-group(*.class)).
This is an extension to the ViewTransition API that simplifies styling of view transition pseudo elements in a similar way that CSS classes simplify styling of regular DOM elements.
Custom Elements let web authors define their own tags. Chrome shipped an implementation based on the working draft of the spec in M33. The current editor's draft of the spec has significant updates based on web developer and implementer feedback.
The feature lets custom elements expose their states via the :state() CSS pseudo class.
Customizable <select> allows developers to take complete control of the rendering of <select> elements by adding the appearance:base-select CSS property.
This feature relies on the SelectParserRelaxation flag, which changes the HTML parser to allow more tags within the <select> tag. Sites which include additional tags inside <select> which were getting removed before, such as <span>s, or are including an extremely large number of <option>s in their <select>, may be affected by SelectParserRelaxation. This feature and SelectParserRelaxation can be controlled with the SelectParserRelaxation enterprise policy. Some issues that have come up in prior launches of SelectParserRelaxation include <select>s taking a very long time to open or <option>s not showing up anymore.
Also tagged: Performance & Scheduling
Authors can now create custom elements which inherit from the semantics of native, built-in elements. This is helpful when web authors want to add features to their custom elements, but they cannot be implemented in CSS or JavaScript though the features are available in built-in elements.
Also tagged: JavaScript Language
Lets custom element authors use ElementInternals to set a custom element's default accessibility role, states, and properties, much like the default accessibility semantics for native elements.
The EditContext API simplifies the process of integrating a web app with advanced text input methods such as VK shape-writing, Handwriting panels, speech recognition, IME Compositions etc., improves accessibility and performance, and unlocks new capabilities for web-based editors.
Also tagged: Performance & Scheduling Progressive Web Apps
This launches the proposed extension of the Storage Access API (backwards compatible and currently in OT) to allow access to unpartitioned cookie and non-cookie storage in a third-party context. The current API only provides access to cookies, which have different use-cases than non-cookie storage (discussed more in the Motivation section). The API can be used as follows (JS running in an embedded iframe):
// Request a new storage handle via rSA (this may prompt the user)
let handle = await document.requestStorageAccess({all: true});
// Write some 1P context sessionstorage
handle.sessionStorage.setItem("userid", "1234");
// Write some 1P context localstorage
handle.localStorage.setItem("preference", "A");
// Open or create an indexedDB that is shared with the 1P context
let messageDB = handle.indexedDB.open("messages");
// Use locks shared with the 1P context
await handle.locks.request(“example”, …);
The same flow would be used by iframes to get a storage handle when their top-level ancestor successfully called requestStorageAccessFor, just that in this case the storage-access permission was already granted and thus the requestStorageAccess call would not require a user gesture or show a prompt, allowing for “hidden” iframes accessing storage.
Also tagged: JavaScript Language Performance & Scheduling Privacy & Identity Security & Authentication Storage & Files
The EyeDropper API enables developers to use a browser-supplied eyedropper in the construction of custom color pickers.
Also tagged: Progressive Web Apps
Reconciles the FedCM and Storage Access APIs by making a prior FedCM grant a valid reason to automatically approve a storage access request.
When a user grants permission for using their identity with a 3rd party Identity Provider (IdP) on a Relying Party (RP), many IdPs require third-party cookies to function correctly and securely. This proposal aims to satisfy that requirement in a private and secure manner by updating the Storage Access API (SAA) permission checks to not only accept the permission grant that is given by a storage access prompt, but also the permission grant that is given by a FedCM prompt.
A key property of this mechanism is limiting the grant to cases explicitly allowed by the RP via the FedCM permissions policy, enforcing a per-frame control for the RP and preventing passive surveillance by the IdP beyond the capabilities that FedCM already grants, as outlined in the Privacy Considerations.
Also tagged: Media & Real-time Communication Privacy & Identity Security & Authentication
This bundles a few features that we would like to launch at the same time. We are bundling them together because they can be used by IdPs to implement authorization flows such as letting a user grant access to a user’s calendar to an RP. See also https://github.com/w3c-fedid/FedCM/issues/477.
Continuation API:
https://github.com/fedidcg/FedCM/issues/555
This lets the IDP open a popup window to finish the sign-in flow after potentially collecting additional information.
Parameters API:
https://github.com/fedidcg/FedCM/issues/556
This lets RPs pass additional data to the ID assertion endpoint
Fields API:
https://github.com/fedidcg/FedCM/issues/559
This lets RPs bypass the data sharing prompt in favor of the IDP prompting
Multiple configURLs:
https://github.com/fedidcg/FedCM/issues/552
This lets IDPs use different config files in different contexts without weakening FedCM privacy properties, by allowing one accounts endpoint for the eTLD+1 (instead of one config file, which is more limiting than necessary)
Account labels:
https://github.com/fedidcg/FedCM/issues/553
Combined with the previous proposal, this allows filtering the account list per config file without providing additional entropy to the IDP.
Also tagged: Privacy & Identity
Reporting beacons (for FenceEvent-built destination enum events, FenceEvent-built automatic beacon events, and macro-substituted destination URL events) will have their "Referer" header set to the initiating frame's origin. This is a strictly additive change, as the "Referer" header is currently unpopulated for all fenced frame event-level reports.
Also tagged: Privacy & Identity
A programmatic method of constructing File objects, very similar to how Blob objects are built.
Adds the form.requestSubmit() function, which requests form submission. It includes interactive constraint validation, dispatches a 'submit' event, and takes a reference to the submitter button.
Import maps allows control over what URLs get fetched by JavaScript import statements and import() expressions.
Also tagged: JavaScript Language Performance & Scheduling
Support more CSS styling for the structure of <details> and <summary> elements to allow these elements to be used in more cases where disclosure widgets or accordion widgets are built on the web. In particular, this change removes restrictions that prevented setting the display property on these elements, and adds a ::details-content pseudo-element to style the container for the part that expands and collapses.
JSON modules allow statically importing JSON instead of consuming JSON dynamically through fetch(). JSON modules, like JavaSCript modules, are fetched using “cors” mode and strict MIME type checking. They also share the same module import syntax, for example: import data from "./resource.json”.
Also tagged: JavaScript Language
Gives web applications the ability to enumerate local fonts and some metadata about each. Also gives web applications access to table data stored within local fonts, allowing those fonts to be rendered within their applications using custom text stacks.
Also tagged: Fonts & Text Progressive Web Apps WebAssembly
This feature defines an API surface for manipulating raw media carried by MediaStreamTracks such as the output of a camera, microphone, screen capture, or the decoder part of a codec and the input to the decoder part of a codec. It uses WebCodecs interfaces to represent raw media frames and exposes them using streams, similarly to the way the WebRTC Insertable Streams spec exposes encoded data from RTCPeerConnections.
Also tagged: Media & Real-time Communication
The "persistent-storage" property is a new permission for the Permission API. The permission state can already be queried with navigator.storage.persisted(), with this change navigator.permissions.query({name:"persistent-storage"}) can be used as well.
Also tagged: Security & Authentication
# Rationale
There have been several reported problems around the Web MIDI API's drive-by access to client MIDI devices.[1][2] To address this problem, the Audio WG decided to place an explicit permission on the general MIDI API access.[3][4] Originally, the explicit permission was only required for advanced MIDI usage (System Exclusive messages) in Chrome, but the completion of this work will expand the scope of the permission even to regular MIDI API usage.
# Project Scope
This feature gates the Web MIDI API access behind a permissions prompt. Today the use of SysEx messages with the Web MIDI API requires an explicit user permission. With this implementation, even access to the Web MIDI API without SysEx support will require a user permission.
[1] https://crbug.com/1251044
[2] https://www.phpied.com/nightmare-scenarios-with-webmidi/
[3] https://www.w3.org/TR/webmidi/#requestmidiaccess
[4] https://webaudio.github.io/web-midi-api/#permissions-integration
Also tagged: Media & Real-time Communication Security & Authentication
Promise.try is a new static method. `Promise.try(f)` is shorthand for `new Promise(resolve => resolve(f()))`.
Also tagged: JavaScript Language
Provides a privacy advancing API to facilitate interest group based advertising. The Protected Audience API shifts the interest data and the final ad decision browser-side instead of server-side, offering many advantages: strong privacy guarantees, as well as time limits on group membership, transparency into how the advertiser interest groups are built and used, and granular or global controls over this type of ad targeting.
Also tagged: Privacy & Identity
Web developers may specify a referrer policy on their documents, which impacts the `Referer` header sent on outgoing requests and navigations. When no policy is specified, Chrome will now use strict-origin-when-cross-origin as the default policy, instead of no-referrer-when-downgrade. On cross-origin requests made from documents without a specified referrer policy, this reduces the `Referer` header to the initiating origin and retains its usefulness while mitigating the risk of leaking data.
Also tagged: Security & Authentication
Add set operations, string literals, nested classes and unicode properties of strings to regular expression character classes.
Set operations and unicode properties of strings allow developers to create regular expressions matching strings with certain unicode characters with ease. E.g. /[\p{Script_Extensions=Greek}&&\p{Letter}]/v matches all greek letters.
Also tagged: JavaScript Language
Add a new method, named at(), to Array.prototype, String.prototype, and the TypedArray prototypes, that permit relative indexing with negative indices.
```
let arr = [1,2,3,4];
arr.at(-1); // Returns 4
```
reportValidity() invokes built-in form validation UI programatically.
With the removal of Flash, there is no longer the need to return anything for navigator.plugins and navigator.mimeTypes. These APIs were used primarily for a) probing for Flash player support, or b) fingerprinting. Some sites use these APIs to probe for PDF viewer support. With this change, these arrays will return fixed lists containing a standard list of PDF viewer plugins.
Userspace tasks often have varying degrees of importance (related to user experience), but the Platform lacks a unified API to schedule prioritized work. The postTask API allows developers to schedule tasks (javascript callbacks) with a native browser scheduler at 3 levels of priority: user-blocking, user-visible, and background. It also exposes a TaskController, which can be used to dynamically cancel tasks and change their priority.
Also tagged: JavaScript Language Performance & Scheduling Progressive Web Apps
Secure payment confirmation augments the payment authentication experience on the web with the help of WebAuthn. The feature adds a new 'payment' extension to WebAuthn, which allows a relying party such as a bank to create a PublicKeyCredential that can be queried by any merchant origin as part of an online checkout via the Payment Request API using the 'secure-payment-confirmation' payment method.
Also tagged: Payments Security & Authentication
Enables using the HTML structured clone algorithm synchronously for cloning and transferring objects within a single realm.
Set methods are new methods like union and intersection that are added to JavaScript's built-in `Set` class.
Also tagged: JavaScript Language
Snap Events allow developers reliably listen for when the "snap target" of a scroller changes and perform style adjustments as desired.
CSS scroll snap points are often used as a mechanism to create scroll interactive "selection" components, where selection is determined with javascript intersection observers and a scroll end guestimate. By creating built-in events, the invisible state will become actionable, at the right time, and always correct. This feature adds two JavaScript events:
scrollsnapchange and scrollsnapchanging. Scrollsnapchange lets developers know, at the completion of a scroll operation (including snapping), that the element to which a scroller is snapped has changed. Scrollsnapchanging gives developers a hint, during a scroll operation, that the user agent intends to snap the scroll container to a new snap target based on the scrolling input so far.
Also tagged: JavaScript Language
Adds Source-Specific Multicast (SSM) support to the Direct Sockets API, allowing Isolated Web Apps to optionally specify a source address when joining multicast groups to receive UDP packets only from that source. Without a source address, joinGroup() uses Any-Source Multicast (ASM), which receives packets from any source sending to the group. SSM is essential to using multicast outside of private networks, simplifying packet routing, and filtering traffic at the network level by source address, which mitigates spoofing and denial-of-service attacks.
Also tagged: Progressive Web Apps Security & Authentication
Browsers may block third-party resources from accessing cookies and other storage for privacy and security reasons. The most popular reason is cross-site tracking prevention. Such blocking breaks authenticated cross-site embeds such as commenting widgets, embedded payment providers, and subscribed video services.
The Storage Access API provides a means for authenticated cross-site embeds to check their blocking status and request access to storage if they are blocked.
Also tagged: JavaScript Language Media & Real-time Communication Payments Privacy & Identity Security & Authentication
APIs for creating, composing, and consuming streams of data, that map efficiently to low-level I/O primitives, and allow easy composition with built-in backpressure and queuing.
WritableStream is part of the Streams API for creating, composing, and consuming streams of data. It is the writable counterpart to ReadableStream, which is already shipping in Chrome. It provides a standard abstraction for writing streaming data to a sink, with built-in backpressure and queuing. This is expected to be on by default in Chrome 59.
Add two String.prototype methods for working with well-formed UTF-16 strings.
A JavaScript string value is well-formed UTF-16 if it has no unpaired surrogate code points. By default, JavaScript strings may be ill-formed.
- String.prototype.isWellFormed returns whether the receiver string is well-formed UTF-16.
- String.prototype.toWellFormed returns a string that is identical to the receiver string, except all unpaired surrogate code points are replaced with U+FFFD (REPLACEMENT CHARACTER).
Also tagged: JavaScript Language WebAssembly
The TLS Encrypted ClientHello (ECH) extension enables clients to encrypt ClientHello messages, which are normally sent in cleartext, under a server’s public key. This allows websites to opt-in to avoid leaking sensitive fields, like the server name, to the network by hosting a special HTTPS RR DNS record. (Earlier iterations of this extension were called Encrypted Server Name Indication, or ESNI.)
If your organization’s infrastructure relies on the ability to inspect SNI, for example, filtering, logging, and so on, you should test it. You can enable the new behavior by navigating to chrome://flags and enabling the #encrypted-client-hello flag.
If you notice any incompatibilities, you can use the EncryptedClientHelloEnabled enterprise policy to disable support for ECH.
We seek to align our implementation of GREASE in User Agent Client Hints with the current spec, which includes additional GREASE characters beyond the current semicolon and space, and which recommends varying the arbitrary version. This is to help prevent bad assumptions from being built on top of User-Agent strings.
Also tagged: Privacy & Identity
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.
Also tagged: Device & Hardware
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.
Also tagged: Device & Hardware
Provides efficient, low-level access to built-in (software and hardware) media encoders and decoders.
Also tagged: JavaScript Language Media & Real-time Communication WebAssembly
The WebGL specification has defined a WebGLObject superinterface for many years, but Chromium's implementation never exposed it. This did not significantly affect applications in practice, but prevented enabling WebGL IDL tests in the Interop suite. The WebGL working group also aims to finally utilize this superinterface to improve application-level debugging.
This feature exposes the WebGLObject type in the same contexts where the WebGL API is exposed - on the main thread and workers.
Also tagged: Performance & Scheduling
WebGPU is the successor to the WebGL and WebGL 2 graphics APIs for the Web. It provides modern features such as “GPU compute” as well as lower overhead access to GPU hardware and better, more predictable performance. WebGPU is developed by the “GPU for the Web” W3C community group.
Also tagged: Performance & Scheduling WebGPU
WebTransport is a protocol framework that enables clients constrained by the Web security model to communicate with a remote server using a secure multiplexed transport.
Also tagged: Progressive Web Apps Security & Authentication
Allows WebXR applications using immersive-ar on handheld devices to optionally activate a DOM overlay mode where the 2D page content is shown as an interactive transparent layer on top of the application-drawn WebGL content and camera image.
While the current implementation is limited to ARCore-based handheld devices, the specification is intended to also support implementation on AR headsets.
Enhances screen label strings provided by the Window Management API: <https://chromestatus.com/feature/5252960583942144>
This launch refines the `ScreenDetailed.label` implementation by replacing the current placeholder values (e.g. 'External Display 1') with data sourced from display device EDIDs (e.g. 'HP Z27n') and higher-level OS APIs (e.g. localized descriptions such as 'Built-in Retina Display'). These more accurate labels match those shown by OSes in display settings UI surfaces. The labels are only exposed to sites which have been granted the window-management permission by the user.
This revised implementation aligns with the current attribute specification <https://w3c.github.io/window-management/#screen-label> and definitions used for the M93-M96 Origin Trial and the M100 API launch. There is no structural change to the API, only a change in the string content returned by the `ScreenDetailed.label` attribute.
Also tagged: Security & Authentication
Allow returning a directory with both read and write permissions in a single prompt for the File System Access API.
Currently showDirectoryPicker() always returns a read-only directory (after showing a read access prompt), requiring a second prompt to get write access. This double-prompt is a poor user experience and contributes to confusion and permission fatigue among users.
Adds an optional "mode" option to DirectoryPickerOptions which can be specified as either "read" or "readwrite".
Also tagged: Security & Authentication Storage & Files
In developer trial (Behind a flag) (22)
This is a Stage 3 TC39 proposal that adds the methods findLast and findLastIndex to Array.prototype and the various TypedArray.prototypes.
These methods are the "from the end" versions of find and findIndex.
Also tagged: JavaScript Language
Adds a Controlled Frame API available only to Isolated Web Apps (IWAs).
This work adds a new Controlled Frame API which is only available to Isolated Web Apps (IWAs). Like similarly-named APIs on other platforms, Controlled Frame allows embedding all content, even third party content that can't be embedded in <iframe>. Controlled Frame also allows controlling embedded content with a collection of API methods and events.
For more info on Isolated Web Apps, see the IWA explainer: https://github.com/WICG/isolated-web-apps/blob/main/README.md
Also tagged: Media & Real-time Communication Progressive Web Apps
This feature exposes **find-in-page** search result styling to authors as a highlight pseudo-element, like selection and spelling errors. This allows authors to change the foreground and background colors or add text decorations, which can be especially useful if the browser defaults have insufficient contrast with the page colors or are otherwise unsuitable.
This change removes the requirement for the "clipboard-read" permission when using the Async Clipboard API from within a "paste" event handler.
It also applies to writing to the clipboard inside a "copy" or "cut" event, although writing plain text to the clipboard was already permitted on ANY user gesture, so this is a less notable change.
Browser vendors differ in the details of how they permit access to the Async Clipboard API, but this change brings Chromium into alignment with other vendors and the specification [1] which states that read access is to be permitted when
> the current script is running as a result of user interaction with a "Paste" element created by the user agent or operating system.
[1] https://www.w3.org/TR/clipboard-apis/
Also tagged: Progressive Web Apps Security & Authentication
The Face Detection API is a subset of the Shape Detection API which provides the ability to detect human faces and facial landmarks in an image provided by script. The image may come from any type of image buffer source such as an <image>, <video> or <canvas> tag.
Also tagged: Media & Real-time Communication
Gives authors the ability to declaratively give composite widgets arrow key navigation, a guaranteed tab stop, and last-focused memory, replacing hand-coded roving tabindex scripts.
Example:
<div focusgroup="toolbar wrap" aria-label="Formatting">
<button>Bold</button>
<button>Italic</button>
<button>Underline</button>
</div>
Adds ability to pause execution of an iframe that is not rendered or scrolled out of view.
May show a permission prompt to the user when Keyboard Lock and/or Pointer Lock is requested by a website, and saves the user preferences as content settings. The settings can be queried for via the Permissions API. This helps mitigate the abusive use of the APIs.
Also tagged: Security & Authentication
A JavaScript API for detecting the language of text, with confidence levels.
An important supplement to translation is language detection. This can be combined with translation, e.g. taking user input in an unknown language and translating it to a specific target language. Browsers today often already have language detection capabilities, and we want to offer them to web developers through a JavaScript API, supplementing the translation API.
Also tagged: JavaScript Language
This feature adds on-device speech recognition support to the Web Speech API, allowing websites to ensure that neither audio nor transcribed speech are sent to a third-party service for processing.
Websites can query the availability of on-device speech recognition for specific languages, prompt users to install the necessary resources for on-device speech recognition, and choose between on-device or cloud-based speech recognition as needed.
Also tagged: Media & Real-time Communication Privacy & Identity
A behavior change to safely store (and restore) pages in the Back/Forward Cache despite the presence of a "Cache-control: no-store" HTTP header.
This would allow pages to enter BFCache and be restored as long as there are no changes to cookies or network requests that receive response with "Cache-control: no-store" HTTP header.
Also tagged: Privacy & Identity
Promise.withResolvers is a static method that returns a new Promise along with its resolver functions, i.e. `const { promise, resolve, reject } = Promise.withResolvers()`.
This is a standard version of a common helper function found in many JS libraries. Historically, some may know it as `defer` or `deferred`.
Also tagged: JavaScript Language
RegExp.escape is a static method that takes a string and returns an escaped version that may be used as a pattern inside a regular expression.
For example, copied from the proposal explainer:
```
const str = prompt("Please enter a string");
const escaped = RegExp.escape(str);
const re = new RegExp(escaped, 'g'); // handles reg exp special tokens with the replacement.
console.log(ourLongText.replace(re));
```
Also tagged: JavaScript Language
The Rewriter API transforms and rephrases input text in requested ways, backed by an on-device AI language model. Developers may use this API to remove redundancies within a text in order to fit into a word limit, rephrase messages to suit the intended audience or to be more constructive if a message is found to use toxic language, rephrasing a post or article to use simpler words and concepts and more. An enterprise policy (GenAILocalFoundationalModelSettings) is available to disable the underlying model downloading which would render this API unavailable.
Also tagged: Privacy & Identity
ScrollTimeline and ViewTimeline are an extension to the Web Animations spec which allow developers to use the position of a scroller or the position of an element within a scroller as an input 'time' rather than the default monotonic clock time. This enables fast scroll-based animations, such as a shrinking navigation bar, without requiring user script execution.
They can be declared and instantiated both via CSS and Javascript used in CSS animations and Web Animations.
Also tagged: JavaScript Language
Summarizer API is a JavaScript API for producing summaries of input text, backed by an AI language model. Browsers and operating systems are increasingly expected to gain access to a language model. By exposing this built-in model, we avoid every website needing to download their own multi-gigabyte language model, or send input text to third-party APIs. The summarizer API in particular exposes a high-level API for interfacing with a language model in order to summarize multilingual inputs for a variety of use cases, in a way that does not depend on the specific language model in question.
An enterprise policy (GenAILocalFoundationalModelSettings) is available to disable the underlying model downloading which would render this API unavailable.
Language support log:
- Chrome M139 and earlier only supported 'en'
- Chrome M140 added support for 'es' and 'ja'
Also tagged: JavaScript Language Privacy & Identity
The Text Detection API enables web applications to detect and recognize text within images, video frames, canvas elements, and camera streams. As part of the WICG Shape Detection API family, it exposes a modern asynchronous interface (`TextDetector.create()` and `detect()`) that returns recognized text along with enclosing bounding boxes and oriented corner coordinates. This provides web developers with fast, zero-payload optical character recognition directly within the browser while keeping user image data private.
Also tagged: Media & Real-time Communication Privacy & Identity Progressive Web Apps WebAssembly
A new mode for WebAuthn that displays a credential selection UI only if the user has a discoverable credential registered with the Relying Party on their authenticator. The credential is displayed alongside autofilled passwords. This solves the bootstrapping problem when replacing traditional username and password with WebAuthn: websites can fire a WebAuthn call while showing a regular password prompt without worrying about showing a modal dialog error if the device lacks appropriate credentials.
Also tagged: Media & Real-time Communication Security & Authentication
Chrome's implementation of Web Bluetooth does not have a way for websites to get a list of permitted devices. This feature adds the Bluetooth.getDevices() and BluetoothDevice.forget methods. getDevices() will return a list of BluetoothDevice objects that the current origin has been granted permission to use by the user. forget() will allow web developers to voluntarily revoke a permission to a BluetoothDevice that was granted by a user.
Also tagged: Device & Hardware Security & Authentication
Run machine learning models, taking advantage of hardware acceleration. Currently, javascript libraries must parse a model and call WebGL, WebGPU and WASM for the individual compute operations. Providing a model loader API gains performance by optimizing in the browser and potentially taking advantage of new ML processors like TPUs.
Also tagged: JavaScript Language Performance & Scheduling Privacy & Identity Progressive Web Apps WebAssembly WebGPU
WebGPU is the successor to the WebGL and WebGL 2 graphics APIs for the Web. It provides modern features such as “GPU compute” as well as lower overhead access to GPU hardware and better, more predictable performance. WebGPU is developed by the “GPU for the Web” W3C community group.
WebGPU previously launched on Windows, MacOS, and ChromeOS in M113. See https://chromestatus.com/feature/6213121689518080 for details.
Also tagged: Performance & Scheduling WebGPU
The Writer API can be used for writing new material given a writing task prompt, backed by an on-device AI language model. Developers will be able to use this API to generate textual explanations of structured data, composing a post about a product based on reviews or product description, expanding on pro and con lists into full views and more. An enterprise policy (GenAILocalFoundationalModelSettings) is available to disable the underlying model downloading which would render this API unavailable.
Also tagged: Privacy & Identity
In development (13)
Add support for page margin boxes, when printing a web document, or exporting it as PDF.
@page margin boxes allows an author to define the contents in the margin area of a page, for instance to provide custom headers and footers, rather than using the built-in headers and footers generated by the browser.
A margin box is defined via an at-rule inside a CSS @page rule. There are 16 rules defined, one for each page margin box. There's one margin box for each of the 4 corners on the page, and three (start, middle, end) for each of the 4 sides. The appearance and the contents of a margin box are specified with CSS properties inside the at-rule, including the "content" property. Counters are also to be supported, for page numbering. The specification defines two special counter names: "page" for the current page number, and "pages" for the total number of pages.
Also tagged: CSS Layout JavaScript Language
Adds the charLength attribute to the SpeechSynthesisEvent in the Web Speech API, which is fired every time a word is spoken in text to speech applications. The charLength length allows developers to get the length, in characters, of the word that is about to be spoken.
Also tagged: Privacy & Identity
The Container Timing API enables monitoring when annotated sections of the DOM are displayed on screen and have finished their initial paint. A developer will have the ability to mark subsections of the DOM with the containertiming attribute (similar to elementtiming for the Element Timing API) and receive performance entries when that section has been painted for the first time. This API will allow developers to measure the timing of various components in their pages.
Also tagged: Performance & Scheduling
Allows web developers to call Device{Motion,Orientation}Event.requestPermission() to ask the user agent for device orientation and motion data to be shared with the page. Those two static methods return a promise that resolves to either "granted" or "denied" based on whether the user has allowed the user agent to share sensor data with pages.
Also tagged: Device & Hardware Security & Authentication
Some platforms or User Agents may provide built-in support for automatic continuous framing based on the position of human faces within the field of view, in particular for camera video streams. Web applications may either want to control or at least be aware that automatic continuous human face framing is applied at the source level. This may for instance allow the web application to update its UI or to not apply human face framing on its own.
Also tagged: Media & Real-time Communication Progressive Web Apps
Allow PWAs implementing File Handling to also specify icons for each set of file types.
File Handling provides a way for web applications to declare the ability to handle files with given MIME types and extensions.
Also tagged: Progressive Web Apps
This feature extends the existing hidden attribute with a new value, "until-found", which makes the element searchable by find-in-page, scroll to text fragment, and fragment navigation. When these search/navigation features want to scroll to something inside a hidden=until-found element, the browser removes the hidden attribute from the element and fires the "beforematch" event on it so that the newly revealed content can be scrolled into view.
HTML-in-canvas enables customizing the rendering of html using canvas with new primitives to manage canvas layout, drawing capabilities, rendering events for DOM-to-canvas synchronization, and geometry update capabilities for canvas-to-DOM synchronization.
Also tagged: Performance & Scheduling Progressive Web Apps
Observables are a popular reactive-programming paradigm to handle an asynchronous stream of push-based events. They can be thought of as Promises but for multiple events, and aim to do what Promises did for callbacks/nesting. That is, they allow ergonomic event handling by providing an Observable object that represents the asynchronous flow of events.
You can "subscribe" to this object to receive events as they come in, and call any of its operators/combinators to declaratively describe the flow of transformations through which events go. This is in contrast with the imperative version, which often requires complicated nesting with things like `addEventListener()`. For more on this, see the examples in the explainer.
The big selling point for native Observables is their integration with EventTarget — its proposed `when()` method that returns an Observable which is a "better" `addEventListener()`.
See https://github.com/WICG/observable and https://twitter.com/domfarolino/status/1684921351004430336.
See the spec https://wicg.github.io/observable/ and the design doc: https://docs.google.com/document/d/1NEobxgiQO-fTSocxJBqcOOOVZRmXcTFg9Iqrhebb7bg/edit.
The proposed `setRPHRegistrationMode` WebDriver extension command places the user agent in a mode where it will automatically accept or reject (depending on the mode) future Custom Protocol Handlers registrations. This allows full end-to-end testing of Custom Handlers API (eg, registerProtocolHandler), which normally requires user interaction to confirm the user's consent to the protocol registration.
ShadowRealm is a TC39 proposal to add an in-process, synchronous way to create a new global environment with its own global object and its own set of built-ins and intrinsics.
See the proposal explainer at https://github.com/tc39/proposal-shadowrealm/blob/main/explainer.md
Also tagged: JavaScript Language Security & Authentication
Temporal API https://github.com/tc39/proposal-temporal in ECMA262 is a new API that provides standard objects and functions for working with dates and times. Date has been a long-standing pain point in ECMAScript. This proposes Temporal, a global Object that acts as a top-level namespace (like Math), that brings a modern date/time API to the ECMAScript language. Full documentation can be found here: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Temporal
Also tagged: JavaScript Language
Starting in Chrome 158, the new Web Install API allows websites to prompt users to install a web app, given a manifest URL and optional manifest ID. The `navigator.install()` method enables cross-origin web app installation and provides a better developer experience than handling `beforeinstallprompt` events. This API is launching in parallel with the [HTML <install> element](https://chromeenterprise.google/resources/release-notes/?ver=158&featId=5152834368700416), a declarative entry point to the same installation capability.
Admins can control this in either of two ways:
1. With the enterprise policy, [WebAppInstallByUserEnabled](https://chromeenterprise.google/policies/#WebAppInstallByUserEnabled), to disable user web app installs in general, including installs initiated via `navigator.install()` and `<install>`.
2. With permissions policy, [web-app-installation](https://www.w3.org/TR/permissions-policy/), to allow or disallow use of this feature on origins that the enterprise controls (for example, internal sites or iframes).
Also tagged: Progressive Web Apps Security & Authentication
Proposed (41)
Various inputs (e.g. number, range, date) have a mechanism to step up or down their values, via keyboard, AT action, and/or the stepUp() and stepDown() JS functions.
The 'step-up' and 'step-down' commands are declarative versions of those functions.
Usermedia Capability Element, is a declarative, user-activated control for accessing the starting and interacting with media streams.
This addresses the long-standing problem of permission prompts being triggered directly from JavaScript without a strong signal of user intent. By embedding a browser-controlled element in the page, the user's click provides a clear, intentional signal. This enables a much better prompt UX and, crucially, provides a simple recovery path for users who have previously denied the permission.
Note: This feature was previously developed and tested in an Origin Trial as the more generic <permission> element. Based on feedback from developers and other browser vendors, it has evolved into capability-specific elements to provide a more tailored and powerful developer experience.
Also tagged: JavaScript Language Media & Real-time Communication Security & Authentication
The <camera> and <microphone> capability elements are declarative, user-activated HTML controls that share the same underlying mechanism as the <usermedia> MVP element, with one key distinction: they are designed to request a single capability. The <camera> element specifically requests video capture, while the <microphone> element specifically requests audio capture. Like the <usermedia> MVP, they embed a browser-controlled, strictly styled UI into the page, ensuring a strong, intentional user signal (a click) before a permission prompt is triggered or a stream is started.
The <camera> and <microphone> elements provide a dedicated, semantic HTML control for these single-capability use cases. They maintain the identical security model, strict styling constraints, and built-in permission recovery path as the <usermedia> MVP, but offer a more tailored and ergonomic API for developers who do not need mixed media access.
Also tagged: JavaScript Language Media & Real-time Communication Security & Authentication
As early as Chrome 145, Chrome will remove support for obsolete virtual cameras for all macOS releases that it supports.
On macOS, modern virtual cameras are built using the [Core Media IO](https://developer.apple.com/documentation/coremediaio) framework, which has been available since macOS 12.3. Apple has performed outreach, and all modern virtual camera software has been migrated to use this [Core Media IO framework](https://developer.apple.com/videos/play/wwdc2022/10022/).
Obsolete virtual cameras, built as DAL plugins, have been blocked by macOS itself starting with macOS 14.1 (2023), and have been unsupported in Safari since 2018, if not earlier.
Chrome will remove support for obsolete virtual cameras for all macOS releases that it supports. This allows Chrome to improve security by fully disallowing loading of third-party libraries into Chrome processes.
Also tagged: Media & Real-time Communication Privacy & Identity Security & Authentication
An API on Document for returning the sequence of elements or text nodes within a rectangle.
This feature proposes `ElementInternals#connectedSignal` which is an `AbortSignal` created when the element is connected to the DOM and aborted when the element disconnects from the DOM.
This feature extends customizable select support to the listbox rendering mode, including single-select and multi-select in listbox mode.
The listbox rendering mode means that the select element is rendered in-flow or in the page rather than with a separate button and popup. Listbox rendering mode is opted into across platforms via the multiple or size attributes, like <select multiple> or <select size=4>. When the appearance:base-select CSS property is applied to the select element with these attributes, it will now have improved rendering and input behavior.
This feature does not support customizable select for the multi-select popup, which will come later. The following attributes must be set in order to get a multi-select popup: <select multiple size=1>.
elementInternals.type supports the creation of custom elements that inherit the behaviors and properties of native HTML elements. When elementInternals.type is set to string values that represent native element types, custom elements can leverage the built-in functionality of standard elements while extending their capabilities to meet specific needs.
Provides high-speed, deterministic semantic decision-making directly on the user's device as a built-in AI capability.
Unlike open-ended generative language models (such as the Prompt API) that decode text token-by-token over hundreds or thousands of milliseconds, the Decisions API (window.DecisionModel) evaluates natural language input text against a structured set of questions and candidate options in a single forward pass using logit scoring. This delivers micro-latency evaluations (tens or low hundreds of milliseconds on typical consumer laptop CPUs and GPUs) while outputting calibrated confidence values.
This brings non-autoregressive "System 1" decision models (e.g. Jev, Laya, Kev, Open-Jev) natively into the web platform, providing developers with a pragmatic, zero-marginal-cost "Semantic If" primitive for real-time client-side routing, interactive input guardrails, and adaptive user interfaces.
Also tagged: Privacy & Identity Progressive Web Apps
Delays the generation of the clipboard payload until it is needed by the target applications. Delayed clipboard rendering leverages the existing Async Clipboard API to allow web applications to improve performance when exchanging large data payloads by only producing the clipboard payload once a target application attempt to access it.
Also tagged: Performance & Scheduling Progressive Web Apps
Extensible Stylesheet Language Transformations [XSLT v1.0](https://www.w3.org/TR/xslt-10/), which all browsers adhere to, was standardized in 1999. In the meantime, XSLT has evolved to v2.0 and v3.0, adding features, and growing apart from the old version frozen into browsers. This lack of advancement, coupled with the rise of JavaScript libraries and frameworks that offer more flexible and powerful DOM manipulation, has led to a significant decline in the use of client-side XSLT. Its role within the web browser has been largely superseded by JavaScript-based technologies, such as JSON and React.
Chromium uses the **libxslt** library to process these transformations, and [libxslt was unmaintained](https://discourse.gnome.org/t/stepping-down-as-libxslt-maintainer/27615) for ~6 months of 2025. Libxslt is a complex, aging C codebase of the type notoriously susceptible to memory safety vulnerabilities like buffer overflows, which can lead to arbitrary code execution. Because client-side XSLT is now a niche, rarely-used feature, these libraries receive far less maintenance and security scrutiny than core JavaScript engines, yet they represent a direct, potent attack surface for processing untrusted web content. Indeed, XSLT is the source of several recent high-profile security exploits that continue to put browser users at risk.
For these reasons, Chromium (along with both other browser engines, Gecko and WebKit) plans to deprecate and remove XSLT from the web platform. The modern web is powered by three major browser engines: [Blink](https://www.chromium.org/blink/) (Chromium), [Gecko](https://firefox-source-docs.mozilla.org/overview/gecko.html) (Firefox), and [WebKit](https://webkit.org/) (Safari). They interpret code to render pages.
For more details, see this [Chrome for Developers article](https://developer.chrome.com/docs/web-platform/deprecating-xslt).
From Chrome 158, XSLT will stop functioning on Stable releases.
Also tagged: JavaScript Language Security & Authentication
The Event Timing API (part of the Performance Timeline) is used to measure long-running user interactions. Each entry reports the event type, timeStamp, processing times, and total duration to next paint.
Currently, each entry already reports the EventTarget (node), which is very important to actually find a reproduction use case from field data, in order to fix latency issues.
This new feature additionally exposes a String representation of the EventTarget via a new `targetSelector` attribute of Event Timing API.
Motivation: because observing Event Timing is asynchronous, and because the `target` value is a weak reference, and because interactions with a page often modify the page (e.g. clicking a cookie consent prompt, or a button to dismiss a modal dialog), it is fairly common that the `target` Node might have already disconnected from the DOM and become reporting as `null`.
By capturing a light weight representation of the node (as a querySelector formatted string) we can keep a strong reference for reporting purposes.
Also tagged: Performance & Scheduling Privacy & Identity
We would like to prototype Function Calling in the Prompt API. At a high level, this allows developers to define additional capabilities that a language model can invoke as it processes a prompt either to trigger some actions or obtain additional information to complete a task.
Exposes the LanguageDetector JavaScript Web API on Chrome for Android (Clank). This allows web applications to detect text languages locally on mobile devices using fast, privacy-preserving, and offline-capable on-device machine learning models and not rely on cloud endpoints.
Also tagged: JavaScript Language Privacy & Identity Progressive Web Apps
This feature allows Identity Providers (IdPs) to store information about a user's account in the browser ahead of time via the Login Status API, and allow Relying Parties (RPs) to request access to this information via a browser-mediated prompt similar to the current FedCM flow. By storing the account information ahead of time, this eliminates the browser's need to make calls to the accounts endpoint to display the browser-mediated dialog, improving both performance and privacy. Lightweight Mode for FedCM also requires less complex integration for Identity Providers. Currently these benefits come at the cost of reduced freshness for account hint information presented to the user, but future work may address this limitation if there is sufficient developer interest.
Also tagged: Media & Real-time Communication Performance & Scheduling Privacy & Identity Security & Authentication
Provides a way for a site to prompt the user to enter a locked-down fullscreen mode, where the user cannot 1) use other apps and OS features or 2) exit this mode without notifying the site. Enables users to take low-stakes tests or focus on specific contents in a classroom setting.
Also tagged: Progressive Web Apps
Updates navigator.mediaSession.setMicrophoneActive() and navigator.mediaSession.setCameraActive() to return a Promise<undefined> instead of undefined, matching the W3C Media Session specification. In a fully active document, the returned promise resolves with undefined; if the associated document is not fully active, it returns a promise rejected with an InvalidStateError DOMException.
Also tagged: Media & Real-time Communication
A menu is a way to group menu items together and provide users the ability to execute commands. The existing <menu> element represents a “toolbar” listing of commands, and despite its name, it is not programmatically exposed as a "menu" or "menubar" to accessibility tools, or the web platform. Furthermore, there is no native support to make listed commands look and behave cohesively.
New menu elements make it easier for developers to follow ARIA practices on menu and menubar, while taking advantage of new web platform features that underpin menu systems. These elements include `<menubar>`, `<menulist>`, and `<menuitem>` elements.
These elements expand on the baseline behaviors popover and anchor positioning provide, and come with expected keyboard navigation behavior out of the box, ensuring consistent experiences for users of all kinds, on the platform they are engaging with.
Also tagged: CSS Anchor Positioning
Use <template for> and processing instruction ranges (<?marker>, <?start>, and <?end> to update existing parts of the document without JS.
Also tagged: Performance & Scheduling
This feature introduces "Platform-Provided Behaviors" to ElementInternals, allowing custom elements to adopt native behaviors without extending native elements or reimplementing complex logic. It adds a behaviors static class property that declares which behaviors the platform attaches to instances of the class. attachInternals() is the web author's access route to those already-existing instances, exposed through a new behaviors collection on ElementInternals
Also tagged: JavaScript Language
Prompt API gives web developers direct access to a browser-provided on-device AI language model. The API design offers fine-grained control, aligned with cloud API shapes, for progressively enhancing sites with model interactions tailored to individualized use cases. This complements task-based language model APIs, for example, Summarizer API, as well as a variety of APIs and frameworks for generalized on-device inference with developer-supplied ML models.
The initial implementation supports text, image, and audio inputs. In addition, response constraints ensure that generated text conforms with predefined regex and JSON schema formats.
This supports a variety of use cases, from generating image captions and performing visual searches to transcribing audio, classifying sound events, generating text following specific instructions, and extracting information or insights from multi-modal source material.
This API has been shipped in [Chrome Extensions](https://chromewebstore.google.com/category/extensions). An enterprise policy [GenAILocalFoundationalModelSettings](https://chromeenterprise.google/policies/#GenAILocalFoundationalModelSettings) is available to disable the underlying model downloading, which would render this API unavailable. Enterprise admins can also set the [BuiltInAIAPIsEnabled](https://chromeenterprise.google/policies/#BuiltInAIAPIsEnabled) policy to block Built-In AI API usage, while still permitting other on-device GenAI features.
Language support log:
- Chrome M139 and earlier only supported English ('en')
- Chrome M140 added support for Spanish and Japanese ('es' and 'ja')
Also tagged: Media & Real-time Communication WebAssembly WebGPU
Exposes the Prompt JavaScript Web APIs on Chrome for Android (Clank). This allows web applications to send natural language requests to mobile devices using fast, privacy-preserving, and offline-capable on-device machine learning models without relying on cloud endpoints or increasing site download size.
Also tagged: JavaScript Language Privacy & Identity Progressive Web Apps
Allows developers to configure language model output variety and creativity in the Prompt API using high-level samplingMode presets. Instead of exposing raw numerical parameters like topK and temperature that vary unpredictably across models, developers can choose semantic presets ranging from "most-predictable" for deterministic extraction to "most-creative" for open-ended brainstorming. The browser maps these presets to optimal sampling hyperparameters for the underlying model, providing developers with reliable response tuning while preserving cross-browser interoperability.
enum LanguageModelSamplingMode {
"most-predictable", // For strict consistency/factual extraction
"predictable", // For highly focused outputs
"slightly-predictable", // For moderately focused, consistent outputs
"balanced", // The default state for standard prompting
"slightly-creative", // For moderately varied, expressive outputs
"creative", // For tasks favoring variety over strict facts
"most-creative" // For maximum token diversity and brainstorming
};
This feature is an enhancement of the Prompt API (https://chromestatus.com/feature/5134603979063296).
Also tagged: Progressive Web Apps
Enables developers to control the reasoning effort and receive thoughts from the built-in AI Prompt API (window.LanguageModel).
Developers opt in by passing `thinkingEffort` when creating a session and/or prompting the model (e.g., `{ thinkingEffort: "high", expectedOutputs: [{ type: "text", languages: ["en"] }, { type: "thought" }] }`). High-level semantic effort tiers ("none", "low", "medium", "high") map to underlying configs (e.g. token budgets). Ephemeral reasoning tokens are automatically stripped from the persistent session context, and only surfaced to API clients when requested via `{ type: "thought" }` in `expectedOutputs`, for flexible response ergonomics.
This feature is an enhancement of the Prompt API (https://chromestatus.com/feature/5134603979063296).
Also tagged: Media & Real-time Communication Progressive Web Apps
A JavaScript API for proofreading input text with suggested corrections, backed by an AI language model.
Also tagged: JavaScript Language Privacy & Identity Progressive Web Apps
During Protected Audience (PA) API ad selection auctions, buyers and sellers are able to fetch real-time signals from servers. As a temporary mechanism, the buyer and seller can fetch these signals from any server, including one they operate themselves (a "Bring Your Own Server" model). However, in the future versions of PA, the request will only be sent to a trusted key-value-type server. The server is verified by external parties to ensure it’s running an approved binary built from the open source key-value server code and is running in a trusted execution environment (TEE), and only then is allowed access to decryption keys. This proposal adds support to Chrome to communicate with these trusted key-value servers using an encrypted protocol ensuring that only the appropriately trusted servers can decrypt and respond, thus ensuring the protocol and server maintain desired privacy characteristics.
Also tagged: Privacy & Identity
Chromium allows <meta name=referrer> tags, which specify referrer policies, that contain values with comma-separated lists of policies. We plan to remove this functionality, so that <meta name=referrer>'s content attribute will need to be a single policy.
To fully align with Web standards, Chrome is updating how it detects [XML MIME](https://www.rfc-editor.org/info/rfc7303/) types. Chrome will now recognize valid MIME types whose subtype ends in `+xml` as XML across Chrome and Android WebView, including non-application types such as `text/example+xml` and `image/example+xml`.
For these responses, `PerformanceResourceTiming.contentType` returns application/xml. The value for image/svg+xml remains unchanged.
Enterprise web applications that rely on previous `contentType` values may observe behavior changes. Chrome Actor also uses this shared XML classification for dangerous MIME type navigation checks, so it may block navigations to additional non-application +xml responses. Admins should check whether their applications depend on these MIME types or the previous `contentType` values.
Also tagged: Performance & Scheduling Progressive Web Apps
Adds document.spellCheckCustomDictionary, which lets a page add words to and remove words from a per-document dictionary that the browser's spell checker consults alongside its built-in dictionaries. Matching words are no longer flagged as misspelled in that document, so sites with domain-specific vocabulary, such as product names, technical terms or proper nouns, can suppress false positives without asking users to edit their browser dictionary. The words last only for the document's lifetime and cannot be read back.
Prevent the launchQueue from re-sending the last LaunchParams (including file handles) when a user reloads the page. Currently, a page refresh triggers the launch consumer again with the data from the original launch. This change ensures that a reload is treated as a standard navigation rather than a "re-launch," and the launchQueue will not be populated with duplicate files unless a new file launch event occurs. The re-queueing was never spec'd, and was an unfortunate never-removed stop-gap that was implemented before file handles could be saved to IndexedDB.
Also tagged: Progressive Web Apps Storage & Files
base64 is a common way to represent arbitrary binary data as ASCII. JavaScript has Uint8Arrays to work with binary data, but no built-in mechanism to encode that data as base64, nor to take base64'd data and produce a corresponding Uint8Arrays. This is a proposal to fix that. It also adds methods for converting between hex strings and Uint8Arrays.
Also tagged: JavaScript Language
Currently, when the web platform wants to tell you when you've exceeded quota, it will use `DOMException` with the specific `name` property set to `QuotaExceededError`. However this does not allow carrying additional information.
This proposes removing "QuotaExceededError" from the list of built-in `DOMException` names, and instead creates a class name `QuotaExceededError` from the list of built-in `DOMException` and has the additional optional properties `quota` and `requested`. We propose all instances of specs that throw "QuotaExceededError" `DOMException`s get upgraded to instead throw `QuotaExceededError`s. For now, such specs would leave the `quota` and `requested` properties at their default value of `null`, but they could eventually upgrade to include that data, if it's useful for their use case (and isn't, e.g., a privacy leak).
Also tagged: Privacy & Identity
This feature intends to add a new entry to the PWA manifest that includes information about the current manifest.json version and provides URLs to provide information about the newest updates. The browser will - when available - advertise and display the new ‘changelogs’ when a user clicks the relevant UI.
Also tagged: Progressive Web Apps
This is a new mode for navigator.credentials.get() when used to sign a user into a website with a passkey or a password. Some documentation refers to this new mode as 'Ambient'.
The new mode is similar to Conditional Mediation (also called Conditional UI). It can be called by a page and UI will only be shown if the user has credentials. If the user has no sign-in credentials available, the promise will never resolve.
The difference between Passive Mode and Conditional Mediation is that Passive Mode does not use autofill UI, and therefore does not require a login form be present on the page. Instead it provides the user a sign-in option as a non-modal suggestion. The intention is that the option should be clear enough that the user can recognize an opportunity for a low-friction sign-in, while unobtrusive enough that they can ignore it if they choose to.
Passive Mode and existing Conditional Mediation are compatible. Credentials can be simultaneously made available in Passive Mode UI and autofill UI with a single JavaScript call, if used on a page with a sign-in form.
Also tagged: JavaScript Language Media & Real-time Communication Security & Authentication
WGSL language feature for reinterpreting data in variables.
The feature allows developers to divide a single uniform, storage, or workgroup variable into multiple logical variables. It also allows the type of the data in the variable to be interpreted as multiple types within the program.
Also tagged: WebGPU
Functionality added to the WebGPU spec after its first shipment in a browser.
Adds two new compute shader built-in values for user quality of life. These are implemented for all backends (as polyfills of existing built-in values).
Also tagged: WebGPU
Functionality added to the WebGPU spec after its first shipment in a browser.
The `subgroup_id` and `num_subgroups` built-in values are now available when the subgroups extension is enabled.
Also tagged: Performance & Scheduling WebGPU
Adds the ability to provide a `less` or `greater` modifier to the `@builtin(frag_depth)` in WGSL.
The current `@builtin(frag_depth)` can potentially introduce a performance penalty due to disabling the early-Z optimizations on a draw call. The new modifiers allow the explicit setting of the buffer mode and allow the early-Z optimizations to be applied.
Also tagged: Performance & Scheduling WebGPU
WebMCP is a proposal for a web API that enables web pages to provide agent-specific paths in their UI. With WebMCP, agent-service interaction takes place via app-controlled UI, providing a shared context available to app, agent, and user.
This feature introduces a WebRequest.SecurityInfo API for [ControlledFrame](https://developer.chrome.com/docs/iwa/controlled-frame). It allows a web app to intercept an HTTPS, WSS, or WebTransport request to a server, retrieve the server's certificate fingerprint (as verified by the browser), and then use that fingerprint to manually verify the certificate of a separate raw TCP/UDP connection to the same server. This provides a simple way for the app to confirm it's communicating with the correct server.
Also tagged: Progressive Web Apps Security & Authentication
Adds the WebTransportWriter interface for outgoing WebTransport streams. WebTransportSendStream.getWriter() returns a specialized writer extending WritableStreamDefaultWriter with two methods. atomicWrite(data) admits the complete write only when sufficient stream and connection flow-control credit is available; if the complete chunk does not fit, none of it is admitted and the stream remains usable. commit() marks successfully written bytes as a reliable prefix to be transmitted if the stream is subsequently aborted, provided the connection remains available. Atomic writes help prevent application-protocol flow-control deadlocks, but they do not preserve message boundaries or guarantee delivery in a single network packet.
Also tagged: Media & Real-time Communication