This looks like a regression introduced in Chrome 146 due to some unrelated work on bfcache. I've raised https://issues.chromium.org/issues/507358432 for this.
On the plus side the new `extendedLifetime: true` option does reintroduce this functionality for sites happy to use this :-) But we should fix that regression so it also works for same-origin navigations for workers without that option. And ideally introduce a WPT to catch this next time (I couldn't see an exiting one that is broken in stable <https://wpt.fyi/results/workers/shared-worker-options-mismatch.html?label=stable&label=master&aligned> and working in experimental <https://wpt.fyi/results/workers?label=master&label=experimental&aligned>) to ensure continued interop as you say. On Tuesday, April 28, 2026 at 1:01:17 PM UTC+1 [email protected] wrote: > On Tuesday, 31 March 2026 at 11:47:41 UTC+1 [email protected] wrote: > > Let me share the summary of origin trials as Yoav asked: > > Currently, 35 sites, including large and medium-scale origins, > participated in the origin trials. Usage metrics can be found at > https://chromestatus.com/metrics/feature/timeline/popularity/5550. > > Developers expressed strong interest in using this feature to maintain a > SharedWorker's lifetime across same-origin navigations within a single tab. > While there were requests for seamless migration from non-extended to > extended lifetime workers, we identified a potential "footgun" regarding > WebLocks where a long-lived worker could hold a lock indefinitely. To > ensure safety, we decided to enforce strict separation between the two > lifetime modes. > > Does this mean Chrome has no intention of implementing the spec'd > behaviour > <https://html.spec.whatwg.org/multipage/workers.html#between-loads-shared-worker-timeout> > > here? Both Firefox and Safari maintain a single shared worker across > navigations. It would be nice to have some interop here. > > Demo: https://random-stuff.jakearchibald.com/shared-worker-navigation/ > (the number is the same every navigation in Firefox and Safari, but not in > Chrome, since the worker is re-created each time). > > Jake. > > -- 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 [email protected]. To view this discussion visit https://groups.google.com/a/chromium.org/d/msgid/blink-dev/62d4d89b-9784-4975-baad-3b6761af56d6n%40chromium.org.
