mirror of
https://github.com/RGBCube/serenity
synced 2025-07-23 13:07:42 +00:00
LibWeb: Add the lastEventId IDL attribute to MessageEvent
This commit is contained in:
parent
b53fc8ad3d
commit
9863de4609
2 changed files with 5 additions and 1 deletions
|
@ -23,6 +23,7 @@ public:
|
||||||
|
|
||||||
JS::Value data() const { return m_data; }
|
JS::Value data() const { return m_data; }
|
||||||
String const& origin() const { return m_origin; }
|
String const& origin() const { return m_origin; }
|
||||||
|
String const& last_event_id() const { return m_last_event_id; }
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
MessageEvent(const FlyString& event_name, JS::Value data, String origin)
|
MessageEvent(const FlyString& event_name, JS::Value data, String origin)
|
||||||
|
@ -34,6 +35,7 @@ protected:
|
||||||
|
|
||||||
JS::Value m_data;
|
JS::Value m_data;
|
||||||
String m_origin;
|
String m_origin;
|
||||||
|
String m_last_event_id;
|
||||||
};
|
};
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -2,5 +2,7 @@ interface MessageEvent : Event {
|
||||||
|
|
||||||
readonly attribute any data;
|
readonly attribute any data;
|
||||||
readonly attribute USVString origin;
|
readonly attribute USVString origin;
|
||||||
|
readonly attribute DOMString lastEventId;
|
||||||
|
// FIXME: readonly attribute MessageEventSource? source;
|
||||||
|
// FIXME: readonly attribute FrozenArray<MessagePort> ports;
|
||||||
};
|
};
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue