mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 14:17:36 +00:00
Revert "LibWeb: Allow bypassing transient activation checks for tests"
This reverts commit e52c30cbd5
.
It's highly possible that this test was flaky on CI due to mixing units
of seconds and milliseconds in the transient activation calculation.
Revert the workaround for that commit in an attempt to avoid needless
ad-hoc behavior.
This commit is contained in:
parent
8d7a5afe58
commit
090dbac5a3
6 changed files with 14 additions and 22 deletions
|
@ -89,4 +89,10 @@ void Internals::wheel(double x, double y, double delta_x, double delta_y)
|
|||
page.handle_mousewheel({ x, y }, { x, y }, 0, 0, 0, delta_x, delta_y);
|
||||
}
|
||||
|
||||
WebIDL::ExceptionOr<bool> Internals::dispatch_user_activated_event(DOM::EventTarget& target, DOM::Event& event)
|
||||
{
|
||||
event.set_is_trusted(true);
|
||||
return target.dispatch_event(event);
|
||||
}
|
||||
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue