Limit WebAssembly.Module serialization/deserialization to an agent cluster
Categories
(Core :: DOM: postMessage, defect, P3)
Tracking
()
People
(Reporter: luke, Unassigned)
References
Details
(Keywords: dev-doc-needed)
Comment 1•8 years ago
|
||
![]() |
Reporter | |
Comment 2•8 years ago
|
||
Updated•8 years ago
|
Comment 3•8 years ago
|
||
Comment 5•7 years ago
|
||
Updated•7 years ago
|
Updated•7 years ago
|
Updated•6 years ago
|
Comment 6•5 years ago
|
||
This should be relatively straightforward to add now that we're adding agent cluster support for SharedArrayBuffer. That's still not quite same-origin, it's same-site, but that also matches the current specification for WebAssembly.Module. Same-origin is proposed at https://github.com/whatwg/html/issues/4920 and can be done on top.
Comment 7•5 years ago
|
||
Luke, could you remind my the importance of this bug? Is this blocking reSAB? If not, I would like to deal with it after the bug 1563335
![]() |
Reporter | |
Comment 8•5 years ago
|
||
My impression is that it's not a high priority or blocker; SAB (and the scope of where a SAB can be postMessage()'d) seems like the more important thing to get right. That being said, it seems like, since WebAssembly.Module objects have the same postMessage() rules as SAB, this could be a simple change to implement, so maybe worth doing earlier?
Comment 9•5 years ago
|
||
(In reply to Luke Wagner [:luke] from comment #8)
My impression is that it's not a high priority or blocker; SAB (and the scope of where a SAB can be postMessage()'d) seems like the more important thing to get right. That being said, it seems like, since WebAssembly.Module objects have the same postMessage() rules as SAB, this could be a simple change to implement, so maybe worth doing earlier?
Sure (I asked this mostly because I want to prioritize my work)
Updated•5 years ago
|
Comment 10•5 years ago
|
||
Couple things:
- This isn't important for "resab".
- Given "resab", WebAssembly.Module will likely have different rules from SAB as SAB requires a COOP+COEP process and this isn't needed for WebAssembly.Module.
- Per https://webassembly.github.io/spec/web-api/#serialization WebAssembly.Module has to be restricted to an agent cluster (this is similar to SAB), but comment 0 and the summary of this bug ask for something else.
Luke, can you clarify with WebAssembly folks what the actual design should be? In particular point 3 above seems pertinent.
![]() |
Reporter | |
Comment 11•5 years ago
|
||
Yes, iirc, comment 3 predates the subsequent discussion of further limiting to Agent Cluster; other than the COEP+COOP restriction, WebAssembly.Module should have the exact same allowed postMessage() scope as SAB.
Updated•5 years ago
|
Comment 12•5 years ago
|
||
I don't have time to work on this before the end of this year. Will work on this again next year if no one happens to have time to fix this.
Updated•5 years ago
|
Description
•