mirror of
https://github.com/fergalmoran/ladybird.git
synced 2026-02-23 08:06:11 +00:00
LibWeb: Change the IDL type of MessageEvent::data to any
This commit is contained in:
committed by
Andreas Kling
parent
ded8e84f32
commit
b53fc8ad3d
@@ -80,7 +80,7 @@ void MessagePort::post_message(JS::Value message)
|
||||
// FIXME: This is an ad-hoc hack implementation instead, since we don't currently
|
||||
// have serialization and deserialization of messages.
|
||||
main_thread_event_loop().task_queue().add(HTML::Task::create(HTML::Task::Source::PostedMessage, nullptr, [strong_port = NonnullRefPtr { *target_port }, message]() mutable {
|
||||
strong_port->dispatch_event(MessageEvent::create(HTML::EventNames::message, message.to_string_without_side_effects(), "<origin>"));
|
||||
strong_port->dispatch_event(MessageEvent::create(HTML::EventNames::message, message, "<origin>"));
|
||||
}));
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user