74 features tagged with this topic.
Enabled by default (33)
Chrome has extended the size limit on synchronous WebAssembly compilation on the main thread from 4KB to 8MB. This extension is possible thanks to improvements in the WebAssembly runtime V8. The 8MB limit has been determined through performance measurements on a Google Pixel 1 phone, which is currently considered a representative low-end phone. Future developments in V8 or in hardware may allow to extend the limit further. WebAssembly modules that are bigger than 8MB can be compiled asynchronously with WebAssembly.compile(), or sychronously on a Worker.
Also tagged: JavaScript Language Performance & Scheduling
Validate asm.js code and use type information to optimize the low-level subset of JavaScript.
Also tagged: JavaScript Language
Provides a means of performing gzip and deflate compression from JavaScript using streams. This covers two interfaces: CompressionStream and DecompressionStream.
Also tagged: JavaScript Language
The ImageDecoder API intends to provide web authors random access to decoded images (as ImageBitmap) for each frame in a given image. The returned ImageBitmap objects can be used for drawing to canvas or WebGL (as well as any other future ImageBitmap use cases). Since the API is not bound to the DOM it may also be used in workers.
Also tagged: Media & Real-time Communication Performance & Scheduling
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
The Origin Private File System (OPFS, part of the File System Access API) is augmented with a new surface that brings very performant access to data. This new surface differs from existing ones by offering in-place and exclusive write access to a file’s content. This change, along with the ability to consistently read unflushed modifications and the availability of a synchronous variant on dedicated workers, significantly improves performance and unblocks new use cases.
Also tagged: Performance & Scheduling Storage & Files
Origin-keyed agent clusters allows developers to opt in to giving up certain cross-origin same-site access capabilities — namely synchronous scripting via document.domain, and postMessage()ing WebAssembly.Module instances.
This gives the browser more flexibility in implementation technologies. In particular, in Chrome, we will use this as a hint to put the origin in its own process, subject to resource or platform limitations.
Also tagged: Performance & Scheduling
Extend the ArrayBuffer constructors to take an additional maximum length that allows in-place growth and shrinking of buffers. Similarly, SharedArrayBuffer is extended to take an additional maximum length that allows in-place growth.
Also tagged: JavaScript Language
Adds the JavaScript type SharedArrayBuffer to Android gated behind COOP/COEP.
The concept of a SharedArrayBuffer is that a message to a worker, is posted but instead of copying the content of the array just a reference to it is shared, so that all have the same view on the shared chunk of data in the memory.
This feature is only targeting Android - https://www.chromestatus.com/feature/4570991992766464 handles all other platforms
Also tagged: JavaScript Language Performance & Scheduling
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
Updates asynchronous methods (flush(), getSize(), truncate()) in SyncAccessHandle in File System Access API to synchronous methods. SyncAccessHandle currently has a mix of sync and async methods, hindering the performance and the usability, especially for applications porting c/c++ to Wasm. This update will bring consistency in the API usage and improve the performance for Wasm-based libraries.
Also tagged: Performance & Scheduling Storage & Files
WebAssembly, or wasm, is an efficient low-level programming language for in-browser client-side execution. It is designed to support C/C++ and similar low-level languages. Future versions may be enhanced to better support other languages. WebAssembly is intended to be small, fast to decode, fast to compile, and fast to execute.
Also tagged: JavaScript Language
Allow WebAssembly to import and export WebAssembly function parameters of type i64 using BigInt.
Also tagged: JavaScript Language
Adds a memmove type opcode to WebAssembly and enhances existing data sections to support importable base.This allows better optimization of large memcpy/memmove operations. Data section improvement will make shared libraries work better, especially with threads.
Also tagged: JavaScript Language
Enhancements to Content Security Policy to improve interoperability with WebAssembly.
Also tagged: JavaScript Language Security & Authentication
WebAssembly module sharing between cross-origin but same-site environments will be deprecated to allow agent clusters to be scoped to origins long term. This is a WebAssembly spec change, which has an impact on the platform as well.
Therefore this deprecation is the first step to deprecate document.domain
Also tagged: JavaScript Language
With WebAssembly Dynamic Tiering, an heuristic decides which functions of a WebAssembly module get optimized, and when the optimization is triggered. This is an improvement to the existing eager optimization approach, where all functions get optimized immediately after baseline compilation is finished. WebAssembly Dynamic Tiering reduces the resource consumption of the optimizing compiler, and prevents the compiler from competing with the web application for resources.
Also tagged: JavaScript Language Media & Real-time Communication Progressive Web Apps
This feature is adding exception support to WebAssembly. Exception handling allows code to break control flow when an exception is thrown. The exception can be any exception known by the WebAssembly module, or it may be an unknown exception that was thrown by a called imported function.
Also tagged: JavaScript Language
We implement the WebAssembly extended-const proposal according to https://github.com/WebAssembly/extended-const.
Specifically, we add i32.add, i32.sub, i32.mul, i64.add, i64.sub and i64.mul to the list of constant instructions.
Also tagged: JavaScript Language
The GC proposal adds efficient support for high-level managed languages to WebAssembly, via struct and array types that enable language compilers targeting Wasm to integrate with a garbage collector in the host VM.
In Chrome, enabling this feature implies enabling Typed Function References, which allow function references to be stored in the aforementioned structs and arrays.
Also tagged: JavaScript Language
Allows WebAssembly modules to import and export mutable globals. This building block will allow efficient passing of values like shadow stacks pointers between dynamically linked modules (especially in the multi-threaded case).
Also tagged: JavaScript Language
This feature exposes common JS string operations for easy import into WebAssembly and optimizations thereof. This allows creating and manipulating JS strings from WebAssembly without native support within WebAssembly while still allowing for a similar performance as native string references.
The mechanism works by exposing suitably strict versions of JS string operations in the WebAssembly JS API. These can be imported by modules using externref as a generic data type for storing the strings. The engine can identify that these imports can be represented by native graph operators without the need for calling into JS. This leads to a comparable peak performance as native string operations while allowing quick interoperability with JS since no copying at the boundary is required when calling into arbitrary JS functions that consume strings.
Also tagged: JavaScript Language Performance & Scheduling
The memory64 proposal adds support for linear WebAssembly memories with size larger than 2^32 bits. It provides no new instructions, but instead extends the existing instructions to allow 64-bit indexes for memories and tables.
Also tagged: JavaScript Language
Add support for WebAssembly functions and blocks that return more than one value.
Also tagged: JavaScript Language
Adds opcodes to WebAssembly to support non-trapping float-to-integer conversion to improve the ergonomics of the bytecode format.
Also tagged: JavaScript Language
Extends WebAssembly to support PostMessage of WebAssembly.Module objects to Web Workers. To clarify, this is scoped to just Web Workers (same process, different thread), and not extended to cross-process scenarios (such as cross-origin postMessage, or shared web workers).
Also tagged: Performance & Scheduling
Allow WebAssembly modules to hold references to JS/DOM objects, passing them as arguments, storing them in locals and globals, and storing them in WebAssembly.Table objects.
Also tagged: JavaScript Language
Add sign extension opcodes to WebAssembly. This makes some code sequences shorter and allows us to provide only zero extended versions of atomic opcodes for threads.
WebAssembly SIMD will expose hardware SIMD instructions to WebAssembly applications in a platform-independent way. The SIMD proposal introduces a new 128-bit value type that can be used to represent different types of packed data, and several vector operations that operate on packed data.
SIMD can boost performance by exploiting data level parallelism and is also useful when compiling native code to WebAssembly
Also tagged: JavaScript Language Performance & Scheduling
Add an explicit tail call and indirect tail call opcodes to WebAssembly.
Also tagged: JavaScript Language
The WebAssembly Threads feature allows multiple WebAssembly instances in separate Web Workers to share a single WebAssembly.Memory object.
As with SharedArrayBuffers in JavaScript, this allows very fast communication between the Workers. This can be used to offload computation to another thread to keep the main thread and its UI responsive.
Also tagged: JavaScript Language Performance & Scheduling
Provides efficient, low-level access to built-in (software and hardware) media encoders and decoders.
Also tagged: JavaScript Language Media & Real-time Communication
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: Device & Hardware Performance & Scheduling
Origin trial (5)
The Background Blur API allows web developers to use the native platform's API for camera background segmentation. As Background Blur has become one of the most used features on video conferencing apps like Teams, Meet, Zoom, and Webex, we want web apps to leverage the same platform APIs without completely relying on ML frameworks like TensorFlow.js, Mediapipe, WASM libraries or cloud based solutions.
Also tagged: Media & Real-time Communication Privacy & Identity Progressive Web Apps Security & Authentication
The Web SQL Database standard was first proposed in April 2009 and abandoned in November 2010. Gecko never implemented this feature and WebKit deprecated this feature in 2019. The W3C encouraged those needing web databases to adopt Web Storage or Indexed Database.
Ever since its release, it has made it incredibly difficult to keep our users secure. SQLite was not initially designed to run malicious SQL statements, and yet with WebsQL we have to do exactly this. Having to react to a flow of stability and security issues is an unpredictable cost to the storage team. With SQLite over WASM as its official replacement, we want to remove WebSQL entirely.
Also tagged: Security & Authentication Storage & Files
JavaScript Promise Integration (JSPI) is an API that allows WebAssembly applications to integrate with JavaScript Promises.
It allows a WebAssembly program to act as the generator of a Promise, and it allows the WebAssembly program to interact with Promise-bearing APIs.
In particular, when an application uses JSPI to call a Promise-bearing (JavaScript) API, the WebAssembly code is suspended; and the original caller to the WebAssembly program is given a Promise that will be fulfilled when the WebAssembly program finally completes.
JSPI is described in more detail in https://github.com/WebAssembly/js-promise-integration which is part of the W3C WebAssembly standards track. See also https://github.com/WebAssembly/stack-switching and https://github.com/WebAssembly/meetings/tree/main/stack.
Also tagged: JavaScript Language
Adds the JavaScript type SharedArrayBuffer gated behind COOP/COEP.
The concept of a SharedArrayBuffer is that a message to a worker, is posted but instead of copying the content of the array just a reference to it is shared.
The Atomic API provides atomic loads and stores and Read/Modify/Write accesses to SharedArrayBuffers.
The Atomic.wait provides the ability for a worker to wait for another worker to signal it, without having to spinlock.
Also tagged: JavaScript Language Performance & Scheduling
A JavaScript API to provide language translation capabilities to web pages. Browsers are increasingly offering language translation to their users. Such translation capabilities can also be useful to web developers. This is especially the case when browser's built-in translation abilities cannot help. An enterprise policy (TranslatorAPIAllowed: https://chromeenterprise.google/policies/translator-api-allowed/) is available to disable the underlying model downloading which would render this API unavailable.
Also tagged: JavaScript Language Built-in Web AI WebGPU
In developer trial (Behind a flag) (8)
This feature adds support for Curve25519 algorithms in the Web Cryptography API, namely the signature algorithm Ed25519
Also tagged: JavaScript Language Security & Authentication
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
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 WebGPU
Improves the performance of compiled WebAssembly code by informing the engine that a particular branch instruction is very likely to take a specific path.
This allows the engine to make better decisions for code layout (improving instruction cache hits) and register allocation.
https://github.com/WebAssembly/branch-hinting/blob/main/proposals/branch-hinting/Overview.md
Also tagged: JavaScript Language Performance & Scheduling
Add support for more than one memory per WebAssembly module as specified in the WebAssembly Multi-Memory proposal: https://github.com/WebAssembly/multi-memory/blob/main/proposals/multi-memory/Overview.md
Also tagged: JavaScript Language
Relaxed SIMD extends the existing SIMD proposal to introduce vector instructions that relax the strict determinism constraints of portable SIMD to take better advantage of the underlying hardware.
The operations introduced in this proposal take advantage of widely available instruction sets to accelerate compute workloads.
Also tagged: JavaScript Language
Allows WebAssembly module developers to create and use string references as a native data type. These string references are compatible with JavaScript strings and allow an easy interaction with JavaScript functions without the need to create copies or re-encoding at the language boundary.
Specifically, these references are useful in conjunction with garbage collected WebAssembly (WasmGC) where the references nicely tie into the heap-based memory model.
https://github.com/WebAssembly/stringref/blob/main/proposals/stringref/Overview.md
Also tagged: JavaScript Language
Expands the JavaScript API surface of WebAssembly to allow reflection on the data types of functions imported and exported from a WebAssembly module.
Also tagged: JavaScript Language
Proposed (19)
Add post-quantum cryptography and a common symmetric AEAD to the set of cryptographic algorithms available in the Web Cryptography API. This will enable developers to have access browser-provided implementations of common quantum-resistant cryptographic algorithms standardized by NIST.
* ML-KEM - 768, 1024
* ML-DSA - 44, 65, 87
* ChaCha20-Poly1305
* X-Wing
Also tagged: JavaScript Language
MediaBlob is a high-level API that enables video editing in the browser.
Also tagged: JavaScript Language Media & Real-time Communication
Cross-Origin Storage (COS), is a content-addressable browser cache that shares files across origins by hash, with k-anonymity-based availability gating to prevent cross-site tracking. It provides a secure mechanism for web applications to store and retrieve large files across different origins. Utilizing cryptographic hashes to identify and verify files, this feature allows developers to share common assets—such as AI models, WebAssembly modules, and popular JavaScript libraries—across multiple domains without redundant downloads. The hash is the key for the resource and sharing doesn't depend on fetching the resource from a shared location. This significantly reduces network costs, startup latency, and client-side storage overhead while maintaining strict user privacy and security boundaries.
Also tagged: JavaScript Language Privacy & Identity Progressive Web Apps Security & Authentication Storage & Files
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 Built-in Web AI
The Embedding API is a proposed Web Platform API that allows developers to generate high-dimensional vector representations (embeddings) of content directly on the user's device.
By leveraging Chrome's on-device AI infrastructure and a shared on-device model, this API enables powerful semantic understanding features—such as semantic search, Retrieval-Augmented Generation (RAG), and content clustering. It eliminates the latency, cost, and privacy trade-offs of cloud services. Furthermore, compared to DIY client-side approaches, it provides significant user benefits (saving bandwidth and local storage by preventing each site from downloading its own massive model) and developer benefits (abstracting away complex model delivery and keeping WebAssembly/WebGPU frameworks up-to-date).
Also tagged: JavaScript Language Performance & Scheduling Privacy & Identity Storage & Files Built-in Web AI WebGPU
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 Built-in Web AI
Allow Atomics.wait on the main browser thread. Atomics.wait currently throws on the main thread, which nudges developers towards using spinlocks instead. Spinlocks are worse for performance and power usage than Atomics.wait, so this change allows developers to write more efficient multithreaded applications.
Also tagged: JavaScript Language Performance & Scheduling
Exposes a WorkletPerformance object on AudioWorkletGlobalScope.performance providing the now() method (DOMHighResTimeStamp). This allows AudioWorkletProcessor scripts running on the real-time audio rendering thread to measure sub-millisecond elapsed time and benchmark DSP or WebAssembly execution using the same monotonic clock and document time origin as Window and Worker contexts, subject to standard cross-origin isolation timer coarsening (5 microseconds when cross-origin isolated, 100
microseconds otherwise).
Also tagged: Media & Real-time Communication Performance & Scheduling
Allows Service Workers to delegate their transient popup capability (acquired from a user interaction like a notification click) to same-origin client windows. This enables client windows to open child (pop-up) windows, such as email previews or chat windows, without being blocked by the popup blocker. This allows developers to take advantage of frame state-sharing performance (e.g. sharing in-memory state via `window.opener`), instead of requiring a new top-level browsing context (which is what `Clients.openWindow` does).
Also tagged: Performance & Scheduling Progressive Web Apps
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 Built-in Web AI WebGPU
Protected Audience bidding and scoring scripts that interface with WebAssembly need to efficiently convert string-typed data to (and from) byte arrays (e.g. to pass strings into and out of WebAssembly via the “memory” ArrayBuffer). This provides two standalone functions, protectedAudience.encodeUtf8, and protectedAudience.decodeUtf8 to perform these tasks about an order of magnitude more efficiently than doing it in JavaScript.
Also tagged: JavaScript Language
The WebRTC Encoded Transform API allows processing of encoded data from RTCPeerConnections. However, one functionality is lacking: the ability to create new encoded frames from scratch.
So far, the only way to create a new frame has been to read a frame from an RTCPeerConnection. Some use cases require the ability to create frames from scratch. For example, applications that want to do encoding using WebCodecs or some other custom mechanism (e.g., a WASM encoder).
Also tagged: Media & Real-time Communication
For a long time, SharedWorker has been disabled on Android due to concerns about its unpredictable process lifecycle. We believed that SharedWorker instances might terminate unexpectedly, without noticing to users or web developers, which we considered unacceptable.
However, a recent discussion on GitHub (https://github.com/whatwg/html/issues/11205) suggests that the unpredictable nature of SharedWorker's process lifecycle might not be as significant an issue as we once thought. Based on this, we plan to re-enable SharedWorker on Android while simultaneously investigating this behavior to ensure a stable and reliable experience.
Also tagged: Performance & Scheduling
This feature introduces Acquire-Release memory ordering to WebAssembly atomics. It adds acquire-release semantics to atomic loads, stores, Read-Modify-Write (add, sub, and, or, xor, xchng, compare_xchange) instructions, and atomic fences. It also introduces a pause instruction.
Also tagged: JavaScript Language
Adds two compact binary encoding formats to the WebAssembly import section to group multiple imports under a single module name and shared type signature.
Currently, every imported item must redundantly repeat its module name and type declaration, leading to avoidable binary bloat and parsing overhead for modules with many imports (such as JavaScript String Builtins or WebGL bindings). This feature enables compilers to eliminate these duplicate strings and type definitions, reducing Wasm file sizes and module compilation time on the web.
Also tagged: JavaScript Language
Adds support for WebAssembly instructions for wide 128-bit integer arithmetic (i64.add128, i64.sub128, and widening multiplications i64.mul_wide_s/u) using pairs of 64-bit integer operands and results. This allows compilers to lower 128-bit math, big-number arithmetic, and cryptography algorithms directly to efficient native CPU instructions without requiring slow emulation loops or multi3 runtime library calls.
Also tagged: JavaScript Language
Allows WebAssembly to store data associated with source-level types more efficiently in new "custom descriptor" objects. These custom descriptors can be configured with prototypes for the WebAssembly objects of that source-level type. This allows methods to be installed on a WebAssembly object's prototype chain and called directly from JS using normal method call syntax. The prototypes and methods can be configured declaratively using an imported builtin function.
Also tagged: JavaScript Language
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
The RTCPeerConnection API allows encoding raw audio and video and send it to a remote peer. Raw audio and video are provided via a MediaStreamTrack, which usually carries media from cameras, microphones, screen captures and other sources.
In some cases, applications are interested in inserting encoded media directly into the peer connection:
* The application wants to use a custom encoder instead of the internal encoder of the peer connection. This custom encoder could be a WebCodecs encoder, a WASM encoder or any other kind supplied by the application.
* The application wants to use encoded data already available from another source such as another peer connection (e.g., to forward frames), or a file.
This proposal adds a new API to inject encoded frames directly into an RTCRtpSender from an RTCPeerConnection.
Also tagged: Media & Real-time Communication