[Webkit-unassigned] [Bug 238291] [WebAssembly][Modules] Support Wasm module import from a JS Worker module

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Tue Mar 29 11:31:53 PDT 2022


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

--- Comment #7 from Asumu Takikawa <asumu at igalia.com> ---
I've just refined this patch to solve the problem in IMO a better way.

Instead of modifying WorkerEventLoop.cpp at all, this adds a new parameter called `useTimeout` to WorkerRunLoop's `runInMode`. It defaults to false, but when it is true, the run loop will trigger timer-based timeouts even in a non-default run mode (such as for module loading).

Then in the use of the run loop for Worker module loading, we set the parameter to true and schedule a timer so that eventually the run loop will time out and run JS VM microtasks if needed.

This should also fix the test failure that came up in the previous patch with `LayoutTests/http/wpt/resource-timing/rt-initiatorType.worker.html`.

-- 
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/20220329/635546db/attachment.htm>


More information about the webkit-unassigned mailing list