Custom data origin in sharedStorage.createWorklet
- Category
- Offline / Storage
- Type
- New or changed feature
- Status
- In developer trial (Behind a flag) (Chrome In developer trial (Behind a flag))
- Intent stage
- None
Summary
We add support for a creating a worklet with an arbitrary data origin for accessing shared storage data, as long as that data origin has opted in for its data to be processed by the worklet script's origin and invoking context.
Motivation
This change is needed because some developers use different domains to host their worklet scripts and their data. This will allow them to run their worklet script from one domain and still use it to process their shared storage data, assuming that they setup the opt-in correctly.
Standards & signals
- Specification: https://github.com/WICG/shared-storage/pull/206
- Firefox: No signal
- Safari: No signal
- Web developers: No signals
Ecosystem
- Web Platform Tests: https://wpt.fyi/results/?q=custom-data-origin-in-sharedstorage-createworklet
- Chrome Platform Showcase: https://chrome-platform-showcase.paulkinlan-ea.deno.net/features
- GenDN reference: https://gendn.paulkinlan-ea.deno.net/features
- chrome.dev demos search: https://www.google.com/search?q=site%3Achrome.dev+Custom%20data%20origin%20in%20sharedStorage.createWorklet
- MDN Web Docs: https://developer.mozilla.org/en-US/search?q=Custom%20data%20origin%20in%20sharedStorage.createWorklet
- Baseline status: https://webstatus.dev/?q=Custom%20data%20origin%20in%20sharedStorage.createWorklet
Explainers: https://github.com/WICG/shared-storage https://github.com/WICG/shared-storage/pull/198