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

[spec] Monkeypatch for addModule() has a stale explication of "same-origin worklet" #181

Open
pythagoraskitty opened this issue Sep 5, 2024 · 0 comments

Comments

@pythagoraskitty
Copy link
Collaborator

In the spec monkeypatch for addModule(), the following is stated in a note:

"On user preferences error, addModule() will be aborted at an early stage. However, the error will only be exposed to the caller for a same-origin worklet (i.e. where the initiator document’s origin is same-origin with the module script’s origin)."

It used to be the case that a worklet would be cross-origin if created using a sharedStorage.createWorklet() using a cross-origin script, as the script's origin would then be used as the data partition origin for shared storage access. This behavior has been updated in the spec, however, and will soon no longer be the default.

So the language used to explain "same-origin worklet" needs to be fixed.

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

No branches or pull requests

1 participant