Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Explainer] Support custom dataOrigin in createWorklet #198

Merged
merged 6 commits into from
Oct 29, 2024

Conversation

pythagoraskitty
Copy link
Collaborator

@pythagoraskitty pythagoraskitty commented Sep 20, 2024

We have developers currently testing the Shared Storage API who have indicated they want to be able to run their worklet on a different origin from the origin that wrote the data. In particular, one of these two actions may be served by, e.g., a CDN, and the other by another domain.

Third-party cookies allow sharing data at the site level. The current architecture of shared storage, however, only allows the invoking context's origin for addModule()/createWorklet() to be used as the shared storage data partition origin, or in the case of createWorklet(), the worklet script's origin may be manually selected as the data partition origin using the option dataOrigin: "script-origin".

We suggest making it possible for a worklet script to use shared storage data from an arbitrary origin other than the worklet script's origin or the invoking context's origin. The data origin would have to opt-in for data use to occur, as data processing could modify the data origin's data, send reports, and would affect its shared storage privacy budget.

While the worklet script will be able to process the data origin's data within a shared storage worklet, the current restrictions will remain in place on output of shared storage data.

We have developers currently testing the Shared Storage API who have indicated they want to be able to run their worklet on a different origin from the origin that wrote the data. In particular, one of these two actions may be served by, e.g., a CDN, and the other by another domain.  

Third-party cookies allow sharing data at the site level. The current architecture of shared storage, however, only allows the invoking context's origin for `addModule()`/`createWorklet()` to be used as the shared storage data partition origin, or in the case of `createWorklet()`, the worklet script's origin may be manually selected as the data partition origin using the option `dataOrigin: "script-origin"`.

We suggest making it possible for a worklet script to use shared storage data from an arbitrary origin other than the worklet script's origin or the invoking context's origin on an opt-in basis. The data-owning origin would have to opt-in for data use to occur, as data processing could modify the data origin's, send reports, and would affect its shared storage privacy budget. 

While the worklet script will be able to process the data-owning origin's data within a shared storage worklet, the current restrictions will remain in place on output of shared storage data.
README.md Outdated Show resolved Hide resolved
README.md Outdated Show resolved Hide resolved
README.md Outdated Show resolved Hide resolved
@pythagoraskitty pythagoraskitty merged commit a514c97 into main Oct 29, 2024
1 check passed
@pythagoraskitty pythagoraskitty deleted the cammie-branch2 branch October 29, 2024 19:18
pythagoraskitty added a commit that referenced this pull request Nov 5, 2024
pythagoraskitty added a commit to pythagoraskitty/wpt that referenced this pull request Nov 12, 2024
We add a route for /.well-known/shared-storage/trusted-origins to RoutesBuilder in order to test custom data origins for shared storage.

See the explainer update: WICG/shared-storage#198.
pythagoraskitty added a commit to pythagoraskitty/wpt that referenced this pull request Nov 12, 2024
We add a route for /.well-known/shared-storage/trusted-origins to RoutesBuilder in order to test custom data origins for shared storage.

See the explainer update: WICG/shared-storage#198.

(This is a second attempt, after closing the failed web-platform-tests#49112.)
DanielRyanSmith pushed a commit to web-platform-tests/wpt that referenced this pull request Nov 12, 2024
We add a route for /.well-known/shared-storage/trusted-origins to RoutesBuilder in order to test custom data origins for shared storage.

See the explainer update: WICG/shared-storage#198.

(This is a second attempt, after closing the failed #49112.)
moz-v2v-gh pushed a commit to mozilla/gecko-dev that referenced this pull request Nov 15, 2024
… to RoutesBuilder (attempt 2), a=testonly

Automatic update from web-platform-tests
Add Shared Storage trusted origins route to RoutesBuilder (#49126)

We add a route for /.well-known/shared-storage/trusted-origins to RoutesBuilder in order to test custom data origins for shared storage.

See the explainer update: WICG/shared-storage#198.

(This is a second attempt, after closing the failed web-platform-tests/wpt#49112.)
--

wpt-commits: b6027abc9fb7e6d12b0d7451458035a5fb6335a9
wpt-pr: 49126
gecko-dev-updater pushed a commit to marco-c/gecko-dev-wordified that referenced this pull request Nov 16, 2024
… to RoutesBuilder (attempt 2), a=testonly

Automatic update from web-platform-tests
Add Shared Storage trusted origins route to RoutesBuilder (#49126)

We add a route for /.well-known/shared-storage/trusted-origins to RoutesBuilder in order to test custom data origins for shared storage.

See the explainer update: WICG/shared-storage#198.

(This is a second attempt, after closing the failed web-platform-tests/wpt#49112.)
--

wpt-commits: b6027abc9fb7e6d12b0d7451458035a5fb6335a9
wpt-pr: 49126

UltraBlame original commit: 11aa780661dcbc85c129d75f66e9ef1ffc6394b7
gecko-dev-updater pushed a commit to marco-c/gecko-dev-wordified-and-comments-removed that referenced this pull request Nov 16, 2024
… to RoutesBuilder (attempt 2), a=testonly

Automatic update from web-platform-tests
Add Shared Storage trusted origins route to RoutesBuilder (#49126)

We add a route for /.well-known/shared-storage/trusted-origins to RoutesBuilder in order to test custom data origins for shared storage.

See the explainer update: WICG/shared-storage#198.

(This is a second attempt, after closing the failed web-platform-tests/wpt#49112.)
--

wpt-commits: b6027abc9fb7e6d12b0d7451458035a5fb6335a9
wpt-pr: 49126

UltraBlame original commit: 11aa780661dcbc85c129d75f66e9ef1ffc6394b7
gecko-dev-updater pushed a commit to marco-c/gecko-dev-comments-removed that referenced this pull request Nov 16, 2024
… to RoutesBuilder (attempt 2), a=testonly

Automatic update from web-platform-tests
Add Shared Storage trusted origins route to RoutesBuilder (#49126)

We add a route for /.well-known/shared-storage/trusted-origins to RoutesBuilder in order to test custom data origins for shared storage.

See the explainer update: WICG/shared-storage#198.

(This is a second attempt, after closing the failed web-platform-tests/wpt#49112.)
--

wpt-commits: b6027abc9fb7e6d12b0d7451458035a5fb6335a9
wpt-pr: 49126

UltraBlame original commit: 11aa780661dcbc85c129d75f66e9ef1ffc6394b7
jamienicol pushed a commit to jamienicol/gecko that referenced this pull request Nov 18, 2024
… to RoutesBuilder (attempt 2), a=testonly

Automatic update from web-platform-tests
Add Shared Storage trusted origins route to RoutesBuilder (#49126)

We add a route for /.well-known/shared-storage/trusted-origins to RoutesBuilder in order to test custom data origins for shared storage.

See the explainer update: WICG/shared-storage#198.

(This is a second attempt, after closing the failed web-platform-tests/wpt#49112.)
--

wpt-commits: b6027abc9fb7e6d12b0d7451458035a5fb6335a9
wpt-pr: 49126
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants