Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
LibWeb: Visit the MessagePort's associated Worker target
Without this, a worker can be GC'd in a very simple script such as: const worker = new Worker("script.js"); worker.onmessage = () => {}; Where script.js attempts to post a message back to the parent window. When the Worker is GC'd, the IPC connection from the WebContent process to the WebWorker process is closed. When this occurs, the WebWorker will exit() from LibIPC, and any message from the worker to its parent does not have a chance to run. (cherry picked from commit eeee6ba3f54bc920e7cd493820faab943b59e0bd)
- Loading branch information