[Webkit-unassigned] [Bug 220038] Unable to postMessage a WebAssembly module to a worklet

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Tue Jan 5 09:47:04 PST 2021


https://bugs.webkit.org/show_bug.cgi?id=220038

--- Comment #5 from Chris Dumez <cdumez at apple.com> ---
(In reply to Chris Dumez from comment #4)
> (In reply to Yusuke Suzuki from comment #2)
> > Currently, MessagePort postMessage w/ WebAssembly.Module is not supported.
> > 
> > We need to know the notion of the followings.
> > 
> > 1. This pair of MessagePorts are in the same process so that we can send
> > SerializedScriptValue without using IPC back-and-force
> > 2. This pair of MessagePorts are in the different process so that we should
> > just throw an onmessageerror exception.
> > 
> > Chris, do you know about MessagePort's remote/not-remote flags? Is it
> > specified?
> > 
> > Note: https://bugzilla.mozilla.org/show_bug.cgi?id=1605566
> 
> @Yusuke: I don't quite understand the need for "different-process". Our
> worklets always run in process.
> 
> The only case where we use message port cross-process is with service
> workers, which are different from worklets.

Based on the error, it looks like nobody implemented the serialization of modules in SerializedScriptValue? If so, sending the module to an iframe via postMessage would fail too (has this been tested?)

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-unassigned/attachments/20210105/0fe4a533/attachment-0001.htm>


More information about the webkit-unassigned mailing list