ladybird/Libraries/LibWeb/CookieStore/CookieChangeEvent.idl
Idan Horowitz e3a5d117a6 LibWeb: Mark CookieChangeEvent's changed and deleted as CachedAttribute
This makes them actually conform to the [SameObject] extended attribute.
2025-08-26 06:28:10 -04:00

15 lines
557 B
Text

#import <DOM/Event.idl>
#import <CookieStore/CookieStore.idl>
dictionary CookieChangeEventInit : EventInit {
CookieList changed;
CookieList deleted;
};
// https://cookiestore.spec.whatwg.org/#cookiechangeevent
[Exposed=Window, SecureContext]
interface CookieChangeEvent : Event {
constructor(DOMString type, optional CookieChangeEventInit eventInitDict = {});
[SameObject, CachedAttribute] readonly attribute FrozenArray<CookieListItem> changed;
[SameObject, CachedAttribute] readonly attribute FrozenArray<CookieListItem> deleted;
};