mirror of
https://github.com/RGBCube/serenity
synced 2025-06-01 10:08:10 +00:00
LibWeb+WebWorker: Convert Workers to use MessagePorts for postMessage
This aligns Workers and Window and MessagePorts to all use the same mechanism for transferring serialized messages across realms. It also allows transferring more message ports into a worker. Re-enable the Worker-echo test, as none of the MessagePort tests have themselves been flaky, and those are now using the same underlying implementation.
This commit is contained in:
parent
37f2d49818
commit
b10fee00eb
21 changed files with 159 additions and 222 deletions
|
@ -1,3 +1,4 @@
|
|||
Got message from worker: "loaded"
|
||||
Got message from worker: {"msg":"marco"}
|
||||
Got message from port: "Worker got message port!"
|
||||
Got message from port: "Extra Port got message: \"Hello from port2\""
|
||||
DONE
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue