Re: [css-houdini-drafts] [worklets] Restrict worklets to same-origin

I'm slightly confused from the other thread:

This issue seems to be about how this would integrate with the service workers `Clients`.

>From @wanderview
> Wait, don't worklets create globals? Is there any precedent for a subresource that creates globals? This would seem to make the top level entities to me.

The sub-resource request via `addModule` doesn't create a new global. They just get invoked and run in the same global as everything else.

>From @annevk 
> They're not same-origin in the sense needed to be clients. That's what @wanderview was after.

But they are? My understanding at least is that a `Client` here would just be the `Worklet` object which is already same origin (it is tied to its owning document). This can request sub-resources (via. `addModule`) and invoke it into that scope, right?



-- 
GitHub Notification of comment by bfgeek
Please view or discuss this issue at https://github.com/w3c/css-houdini-drafts/issues/473#issuecomment-335853168 using your GitHub account

Received on Wednesday, 11 October 2017 15:38:40 UTC