Re: [css-houdini-drafts] [worklets] relationship to JavaScript agent clusters

I see they have [owner documents](https://drafts.css-houdini.org/worklets/#workletglobalscope-owner-document). (I guess worklets can only be owned by one document, whereas because of the shared- and service-worker cases, workers can be owned by multiple.) So that should simplify us to

> A similar-origin window agent _agent_ can share memory with any Worklet agent whose single realm's global object's owner document's relevant Realm belongs to _agent_.

Because it is Friday I drew you a picture: 
![image](https://user-images.githubusercontent.com/617481/46562965-d78c9b80-c8cc-11e8-91c0-416275b9e11c.png)

If you squint closely enough you should be able to find:

- _agent_, the similar-origin Window agent
- The Worklet agent
- Its single realm
- That realm's global object
- That realm's global object's owner document
- That realm's global object's owner document's relevant realm
- The way in which the realm from the previous bullet point belongs to _agent_

^_^

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

Received on Friday, 5 October 2018 22:32:51 UTC