1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 23:17:45 +00:00

LibWeb/HTML: Port Window.structuredClone() to IDL

This commit is contained in:
Linus Groh 2023-03-07 18:21:49 +00:00
parent a31c561a5a
commit 129ab02470
8 changed files with 42 additions and 25 deletions

View file

@ -17,6 +17,11 @@ namespace Web::HTML {
E(onmessage, HTML::EventNames::message) \
E(onmessageerror, HTML::EventNames::messageerror)
// https://html.spec.whatwg.org/multipage/web-messaging.html#structuredserializeoptions
struct StructuredSerializeOptions {
Vector<JS::Handle<JS::Object>> transfer;
};
// https://html.spec.whatwg.org/multipage/web-messaging.html#message-ports
class MessagePort final : public DOM::EventTarget {
WEB_PLATFORM_OBJECT(MessagePort, DOM::EventTarget);