[Webkit-unassigned] [Bug 240062] WebWorker stops suddenly without any messages

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Thu May 5 20:21:47 PDT 2022


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

--- Comment #1 from Yusuke Suzuki <ysuzuki at apple.com> ---
I think Worker's DOM activity is not accounted as active when you missed a reference to workers. I think terminating that kind of workers are fine since we have no way to observe that, but SharedArrayBuffer adds a way to observe this termination side-effect.

You can workaround by adding workers reachable from the GC root.

```
globalThis.workers = [];

...

globalThis.workers.push(worker);
```

-- 
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/20220506/d23ee367/attachment.htm>


More information about the webkit-unassigned mailing list