LibWeb+WebWorker: Add IPC messages to request and communicate shutdown

This commit is contained in:
Andrew Kaster
2024-07-09 03:00:06 -06:00
committed by Andreas Kling
parent 5d8784318d
commit 27ef9ffa8f
6 changed files with 25 additions and 0 deletions

View File

@@ -11,6 +11,16 @@
namespace WebWorker {
void ConnectionFromClient::close_worker()
{
async_did_close_worker();
// FIXME: Invoke a worker shutdown operation that implements the spec
m_worker_host = nullptr;
die();
}
void ConnectionFromClient::die()
{
// FIXME: When handling multiple workers in the same process,