mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-07-29 04:09:13 +00:00
LibWeb: Ignore MessagePort.start() on already-closed port
This matches other browsers, and fixes an assertion found by Domato.
This commit is contained in:
parent
c11f710628
commit
43d2c920e0
Notes:
sideshowbarker
2024-07-17 02:06:40 +09:00
Author: https://github.com/awesomekling
Commit: 43d2c920e0
Pull-request: https://github.com/SerenityOS/serenity/pull/23558
3 changed files with 14 additions and 0 deletions
|
@ -364,6 +364,9 @@ void MessagePort::post_message_task_steps(SerializedTransferRecord& serialize_wi
|
|||
// https://html.spec.whatwg.org/multipage/web-messaging.html#dom-messageport-start
|
||||
void MessagePort::start()
|
||||
{
|
||||
if (!is_entangled())
|
||||
return;
|
||||
|
||||
VERIFY(m_socket);
|
||||
VERIFY(m_fd_passing_socket);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue