-
Notifications
You must be signed in to change notification settings - Fork 2.7k
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
Disable SharedArrayBuffer for BroadcastChannel? #3759
Comments
How would this happen? It doesn't seem to fit with the current definition of agent cluster. |
So the example that came up is if we add the isolation header and you have Isolated A -> B -> Isolated A'. Are A and A' in different clusters? It'd only be observable through this. I guess we could continue to allow it, if we're very careful, but the fact that you have to specifically think about |
I'm not too worried myself. I think we should indeed strive to get the agent cluster definition correct, but if we don't, the natural process boundaries in implementations will lead us to discover the mismatch pretty quickly. (As long as we maintain the usual discipline for writing tests and such.) |
Closing this as some people are being misled into thinking that it's an open question how BroadcastChannel and SharedArrayBuffers interact. |
@mystor raised a good point that supporting SharedArrayBuffer in BroadcastChannel puts pressure on really getting the "agent cluster" definition correct. E.g., if you put two same-origin tabs in the same agent cluster, they can suddenly share memory, even if they cannot synchronously access each other. That seems bad and given that it's rather error prone, perhaps we're better off disabling SharedArrayBuffer there?
The text was updated successfully, but these errors were encountered: