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.
While Chrome has been the sole major browser not to offer SharedWorker, this change aims to close that gap. However, unlike on desktop, Android's unpredictable process lifecycle presents a unique risk. SharedWorker instances might terminate unexpectedly, for example, when a Chrome app is moved to the background and then foregrounded. This inherent uncertainty in the Android environment is a key risk when running SharedWorker.
n/a
n/a
This feature is already shipped on desktop, and no new security risks are introduced with the Android implementation.
Does this intent deprecate or change behavior of existing APIs, such that it has potentially high risk for Android WebView-based applications?
None
None.
This feature is already shipped on desktop, and no new debuggability issues should be introduced with the Android implementation.
This aims to make SharedWorker supported on Android and Android WebView. SharedWorker has been supported other than them.
SharedWorker tests under https://wpt.fyi/results/workers. e.g. https://wpt.fyi/results/workers/SharedWorker-simple.html Note that since wpt.fyi runs tests on Linux not Android for Chromium.
Origin trial Android first | 140 |
Origin trial Android last | 144 |
DevTrial on Android | 140 |
LGTM
--
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/CAPNB-6V3xrSzQwRgTAUM_tAX5AasCdEyAbhaAHVTKc9m%2BagnGg%40mail.gmail.com.