1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-31 07:08:10 +00:00

LibWeb: Change the IDL type of MessageEvent::data to any

This commit is contained in:
Idan Horowitz 2021-10-01 18:21:38 +03:00 committed by Andreas Kling
parent ded8e84f32
commit b53fc8ad3d
4 changed files with 9 additions and 10 deletions

View file

@ -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>"));
}));
}