mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 13:57:35 +00:00
LibWeb: Make UIEvents from the chrome the only default trusted Events
This commit is contained in:
parent
567bb0f6a2
commit
32fe7db69f
4 changed files with 10 additions and 4 deletions
|
@ -83,7 +83,9 @@ WebIDL::ExceptionOr<JS::NonnullGCPtr<MouseEvent>> MouseEvent::create_from_platfo
|
|||
}
|
||||
event_init.button = determine_button(button);
|
||||
event_init.buttons = buttons;
|
||||
return MouseEvent::create(realm, event_name, event_init, page.x().to_double(), page.y().to_double(), offset.x().to_double(), offset.y().to_double(), modifiers);
|
||||
auto event = MouseEvent::create(realm, event_name, event_init, page.x().to_double(), page.y().to_double(), offset.x().to_double(), offset.y().to_double(), modifiers);
|
||||
event->set_is_trusted(true);
|
||||
return event;
|
||||
}
|
||||
|
||||
void MouseEvent::set_event_characteristics()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue