mirror of
https://github.com/fergalmoran/ladybird.git
synced 2025-12-22 09:19:03 +00:00
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:
committed by
Andreas Kling
parent
5bcba896c2
commit
3e8c8b185e
@@ -561,7 +561,7 @@ GC::Ref<HTML::DragEvent> DragAndDropEventHandler::fire_a_drag_and_drop_event(
|
||||
|
||||
if (target) {
|
||||
auto& window = static_cast<HTML::Window&>(HTML::relevant_global_object(*target));
|
||||
event_init.view = window;
|
||||
event_init.view = window.window();
|
||||
}
|
||||
|
||||
// If e is not dragleave or dragend, then initialize event's cancelable attribute to true.
|
||||
|
||||
Reference in New Issue
Block a user