You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
addition/proposalNew features or enhancementsneeds implementer interestMoving the issue forward requires implementers to express interesttopic: agentJavaScript agents and agent clusters, and how documents and workers are grouped into them
I like the general idea, but I wonder what boundary we are looking for. E.g., if we want these documents to (potentially) end up in different processes, the isolation needs to be at a different level (the agent cluster key) as otherwise there would still be shared memory between these documents, for instance.
And as these "window" agent clusters really belong to the browsing context group, this seems like the kind of thing to decide when the browsing context group is created.
I'm not thinking strictly about enforcing process isolation. More like I want to embed this content and it really doesn't have to interact with my content so let me limit the scope I expose to it. So I don't think it necessarily ties into the agent cluster key.
ie. having two documents directly scriptable probably isn't widely used and it should be easy to opt out of it.
Unless we also provide the ability for UAs to optionally process-isolate them it's not entirely clear to me it's worth it. Otherwise they can still (accidentally) share memory via SharedArrayBuffer and affect each other's execution flow.
I think these are good points. I probably want to make the definition of the js bindings dependent on the agent cluster key and then adjust the agent cluster key based on the feature policy. Is that what you were thinking?
Should you be able to enforce this same-site, but cross-origin.
How does this affect further embedded or auxiliary browsing contexts' documents. (If they use the normal key again they would have same-origin access, destroying the encapsulation, which makes me think this needs to be decided at browsing context group creation or per-origin, but there might be further alternatives. I didn't consider this too long.)
And then depending on the resolutions to those there's more, I suspect.
Are not all your points addressed how feature policies work? If set on an iframe it is on the container policy, otherwise documents can opt into it via the header.
addition/proposalNew features or enhancementsneeds implementer interestMoving the issue forward requires implementers to express interesttopic: agentJavaScript agents and agent clusters, and how documents and workers are grouped into them
Activity
annevk commentedon Mar 19, 2019
I like the general idea, but I wonder what boundary we are looking for. E.g., if we want these documents to (potentially) end up in different processes, the isolation needs to be at a different level (the agent cluster key) as otherwise there would still be shared memory between these documents, for instance.
And as these "window" agent clusters really belong to the browsing context group, this seems like the kind of thing to decide when the browsing context group is created.
dtapuska commentedon Mar 19, 2019
I'm not thinking strictly about enforcing process isolation. More like I want to embed this content and it really doesn't have to interact with my content so let me limit the scope I expose to it. So I don't think it necessarily ties into the agent cluster key.
ie. having two documents directly scriptable probably isn't widely used and it should be easy to opt out of it.
annevk commentedon Mar 20, 2019
Unless we also provide the ability for UAs to optionally process-isolate them it's not entirely clear to me it's worth it. Otherwise they can still (accidentally) share memory via
SharedArrayBufferand affect each other's execution flow.dtapuska commentedon Mar 20, 2019
I think these are good points. I probably want to make the definition of the js bindings dependent on the agent cluster key and then adjust the agent cluster key based on the feature policy. Is that what you were thinking?
annevk commentedon Mar 21, 2019
Yeah, other things to resolve:
And then depending on the resolutions to those there's more, I suspect.
dtapuska commentedon Mar 22, 2019
Are not all your points addressed how feature policies work? If set on an iframe it is on the container policy, otherwise documents can opt into it via the header.
annevk commentedon Mar 23, 2019
I don't understand how I'm afraid.
Add a document-access feature policy to prevent access from one
Add a document-access feature policy to prevent access from one
Add a disallowdocumentaccess iframe attribute to prevent access from one
Add a disallowdocumentaccess iframe attribute to prevent access from one
Add a disallowdocumentaccess iframe attribute to prevent access from one