mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-10-19 07:33:20 +00:00

Make WindowProxy implement the EventTarget interface. Add a new method current_target_for_bindings() that returns a WindowProxy object instead of directly exposing the Window object. These changes fixes several WPT tests that contain `window === currentTarget`.
8 lines
No EOL
246 B
Text
8 lines
No EOL
246 B
Text
Harness status: OK
|
|
|
|
Found 3 tests
|
|
|
|
3 Pass
|
|
Pass EventTarget methods on Window instances are inherited from the EventTarget prototype
|
|
Pass window.addEventListener respects custom `this`
|
|
Pass window.addEventListener treats nullish `this` as `window` |