Bug 1830820 - Add tests for user input delay handling r=smaug

Differential Revision: https://phabricator.services.mozilla.com/D186053
This commit is contained in:
Sean Feng
2023-09-05 18:28:53 +00:00
parent a682aea259
commit 28e9652e7f
6 changed files with 259 additions and 1 deletions

View File

@@ -1988,7 +1988,8 @@ bool PresShell::CanHandleUserInputEvents(WidgetGUIEvent* aGUIEvent) {
return true;
}
if (aGUIEvent->mFlags.mIsSynthesizedForTests) {
if (aGUIEvent->mFlags.mIsSynthesizedForTests &&
!StaticPrefs::dom_input_events_security_isUserInputHandlingDelayTest()) {
return true;
}