Does this intent deprecate or change behavior of existing APIs, such that it has potentially high risk for Android WebView-based applications?
No information provided| Origin trial desktop first | 140 |
| Origin trial desktop last | 144 |
| Origin trial extension 1 end milestone | 147 |
| Shipping on Android | 148 |
| Origin trial Android first | 140 |
| Origin trial Android last | 144 |
| DevTrial on Android | 140 |
| Shipping on WebView | 148 |
Open questions about a feature may be a source of future web compat or interop issues. Please list open issues (e.g. links to known github issues in the project for the feature specification) whose resolution may introduce web compat/interop risk (e.g., changing to naming or structure of the API in a non-backward-compatible way).
No information providedOn 3/25/26 10:33 p.m., Chromestatus wrote:
Contact emailsyyana...@google.com, dom...@chromium.org
Specificationhttps://html.spec.whatwg.org/multipage/workers.html#shared-workers-and-the-sharedworker-interface
SummaryFor 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.
Blink componentBlink>Workers
Web Feature IDshared-workers
MotivationThe long-standing demand for SharedWorker support on Android stems from several needs expressed by web developers: - Resource Sharing and Efficiency: Developers aim to share a single WebSocket or Server-Sent Events (SSE) connection across multiple tabs, thereby conserving resources. - Persistent Resource Management: There's a strong desire to share and persist resources across tabs, particularly for technologies like WASM-based SQLite. - Closing a Feature Gap: It has been noted that other major mobile browsers, including Safari on iOS and Firefox on Android, already support SharedWorker, making Chrome on Android the last major browser to address this gap.
Initial public proposalNo information provided
TAG reviewNo information provided
TAG review statusNot applicable
Origin Trial NameSharedWorker on Android
Goals for experimentationThe goal is to evaluate the real-world impact of Android's process lifecycle on SharedWorker stability. Unlike on desktop, SharedWorker instances on Android can be terminated unexpectedly by the operating system due to memory pressure. This trial allows us to release the feature to developers who understand this risk and can provide crucial feedback. Specifically, we aim to measure: 1. The frequency of unexpected SharedWorker terminations in real-world scenarios. 2. Whether the current API is sufficient for developers to handle such terminations gracefully. 3. The necessity of potential spec-level countermeasures, as discussed in https://github.com/whatwg/html/issues/11205, to bridge this behavioral gap between mobile and desktop platforms and ensure a consistent developer experience. The insights from this experiment will be critical in determining the path to shipping SharedWorker on Android, informing whether it can be enabled by default or if further mitigation work is required.
--
You received this message because you are subscribed to the Google Groups "blink-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to blink-dev+...@chromium.org.
To view this discussion visit https://groups.google.com/a/chromium.org/d/msgid/blink-dev/69c49b14.050a0220.2ec94.0888.GAE%40google.com.
--
To unsubscribe from this group and stop receiving emails from it, send an email to blink-dev+unsubscribe@chromium.org.
To unsubscribe from this group and stop receiving emails from it, send an email to blink-dev+...@chromium.org.
LGTM3