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

LibWeb: Add the lastEventId IDL attribute to MessageEvent

This commit is contained in:
Idan Horowitz 2021-10-01 18:30:30 +03:00 committed by Andreas Kling
parent b53fc8ad3d
commit 9863de4609
2 changed files with 5 additions and 1 deletions

View file

@ -23,6 +23,7 @@ public:
JS::Value data() const { return m_data; }
String const& origin() const { return m_origin; }
String const& last_event_id() const { return m_last_event_id; }
protected:
MessageEvent(const FlyString& event_name, JS::Value data, String origin)
@ -34,6 +35,7 @@ protected:
JS::Value m_data;
String m_origin;
String m_last_event_id;
};
}

View file

@ -2,5 +2,7 @@ interface MessageEvent : Event {
readonly attribute any data;
readonly attribute USVString origin;
readonly attribute DOMString lastEventId;
// FIXME: readonly attribute MessageEventSource? source;
// FIXME: readonly attribute FrozenArray<MessagePort> ports;
};