LibWeb: Use WindowProxy instead of Window in UI Events IDL

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
This commit is contained in:
Andreas Kling 2024-11-17 21:54:03 +01:00 committed by Andreas Kling
commit 3e8c8b185e
Notes: github-actions[bot] 2024-11-17 23:00:48 +00:00
20 changed files with 32 additions and 32 deletions

View file

@ -6,11 +6,10 @@ Rerun
Found 5 tests
4 Pass
1 Fail
5 Pass
Details
Result Test Name MessagePass Calling initKeyboardEvent while dispatching.
Pass Calling initMouseEvent while dispatching.
Pass Calling initCustomEvent while dispatching.
Fail Calling initUIEvent while dispatching. Not an object of type Window
Pass Calling initUIEvent while dispatching.
Pass Calling initEvent while dispatching.

View file

@ -6,8 +6,7 @@ Rerun
Found 49 tests
43 Pass
6 Fail
49 Pass
Details
Result Test Name MessagePass Event constructor (no argument)
Pass Event constructor (undefined argument)
@ -20,37 +19,37 @@ Pass UIEvent constructor (undefined argument)
Pass UIEvent constructor (null argument)
Pass UIEvent constructor (empty argument)
Pass UIEvent constructor (argument with default values)
Fail UIEvent constructor (argument with non-default values) Not an object of type Window
Pass UIEvent constructor (argument with non-default values)
Pass FocusEvent constructor (no argument)
Pass FocusEvent constructor (undefined argument)
Pass FocusEvent constructor (null argument)
Pass FocusEvent constructor (empty argument)
Pass FocusEvent constructor (argument with default values)
Fail FocusEvent constructor (argument with non-default values) Not an object of type Window
Pass FocusEvent constructor (argument with non-default values)
Pass MouseEvent constructor (no argument)
Pass MouseEvent constructor (undefined argument)
Pass MouseEvent constructor (null argument)
Pass MouseEvent constructor (empty argument)
Pass MouseEvent constructor (argument with default values)
Fail MouseEvent constructor (argument with non-default values) Not an object of type Window
Pass MouseEvent constructor (argument with non-default values)
Pass WheelEvent constructor (no argument)
Pass WheelEvent constructor (undefined argument)
Pass WheelEvent constructor (null argument)
Pass WheelEvent constructor (empty argument)
Pass WheelEvent constructor (argument with default values)
Fail WheelEvent constructor (argument with non-default values) Not an object of type Window
Pass WheelEvent constructor (argument with non-default values)
Pass KeyboardEvent constructor (no argument)
Pass KeyboardEvent constructor (undefined argument)
Pass KeyboardEvent constructor (null argument)
Pass KeyboardEvent constructor (empty argument)
Pass KeyboardEvent constructor (argument with default values)
Fail KeyboardEvent constructor (argument with non-default values) Not an object of type Window
Pass KeyboardEvent constructor (argument with non-default values)
Pass CompositionEvent constructor (no argument)
Pass CompositionEvent constructor (undefined argument)
Pass CompositionEvent constructor (null argument)
Pass CompositionEvent constructor (empty argument)
Pass CompositionEvent constructor (argument with default values)
Fail CompositionEvent constructor (argument with non-default values) Not an object of type Window
Pass CompositionEvent constructor (argument with non-default values)
Pass SubclassedEvent constructor (no argument)
Pass SubclassedEvent constructor (undefined argument)
Pass SubclassedEvent constructor (null argument)