← Back to release summary

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

Ecosystem

Explainers: https://github.com/WICG/shared-storage https://github.com/WICG/shared-storage/pull/198

View on chromestatus.com