mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-11-25 09:00:22 +00:00
3e8c8b185e
I believe this is an error in the UI Events spec, and it should be
updated to match the HTML spec (which uses WindowProxy everywhere).
This fixes a bunch of issues already covered by existing WPT tests.
Spec bug: https://github.com/w3c/uievents/issues/388
Note that WebKit has been using WindowProxy instead of Window in
UI Events IDL since 2018:
816158b4aa
20 lines
718 B
Text
20 lines
718 B
Text
#import <DOM/Event.idl>
|
|
#import <HTML/Window.idl>
|
|
|
|
// https://w3c.github.io/uievents/#uievent
|
|
[Exposed=Window]
|
|
interface UIEvent : Event {
|
|
constructor(DOMString type, optional UIEventInit eventInitDict = {});
|
|
readonly attribute WindowProxy? view;
|
|
readonly attribute long detail;
|
|
|
|
// Obsolete
|
|
[ImplementedAs=init_ui_event] undefined initUIEvent(DOMString typeArg, optional boolean bubblesArg = false, optional boolean cancelableArg = false, optional WindowProxy? viewArg = null, optional long detailArg = 0);
|
|
readonly attribute unsigned long which;
|
|
};
|
|
|
|
// https://w3c.github.io/uievents/#idl-uieventinit
|
|
dictionary UIEventInit : EventInit {
|
|
WindowProxy? view = null;
|
|
long detail = 0;
|
|
};
|