1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-26 07:37:35 +00:00

LibWeb: Add the missing CloseEvent IDL constructor

This commit is contained in:
Idan Horowitz 2021-10-01 18:16:12 +03:00 committed by Andreas Kling
parent 7f551d7f6a
commit ded8e84f32
3 changed files with 32 additions and 10 deletions

View file

@ -1,7 +1,15 @@
#import <DOM/Event.idl>
interface CloseEvent : Event {
constructor(DOMString type, optional CloseEventInit eventInitDict = {});
readonly attribute boolean wasClean;
readonly attribute unsigned short code;
readonly attribute USVString reason;
};
dictionary CloseEventInit : EventInit {
boolean wasClean = false;
unsigned short code = 0;
USVString reason = "";
};