LibWeb: Reset MessagePort's worker event target when it is disentangled

This commit is contained in:
Timothy Flynn 2024-10-17 07:57:20 -04:00 committed by Tim Flynn
commit d44dd756b3
Notes: github-actions[bot] 2024-10-17 20:35:46 +00:00

View file

@ -128,6 +128,8 @@ void MessagePort::disentangle()
m_remote_port = nullptr; m_remote_port = nullptr;
m_socket = nullptr; m_socket = nullptr;
m_worker_event_target = nullptr;
} }
// https://html.spec.whatwg.org/multipage/web-messaging.html#entangle // https://html.spec.whatwg.org/multipage/web-messaging.html#entangle