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
parent 83be2606db
commit d44dd756b3

View File

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