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:
parent
a31c561a5a
commit
129ab02470
8 changed files with 42 additions and 25 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue