Backed out changeset e5c1b9223818 (bug 1852243) causing problems in event handling for a lot of tests.

This commit is contained in:
Sandor Molnar 2023-10-11 10:08:38 +03:00
parent 9da5439dd7
commit 6dc0b3ef8f
5 changed files with 4 additions and 29 deletions

View File

@ -415,8 +415,7 @@ nsresult TextInputProcessor::BeginInputTransactionInternal(
nsresult rv = NS_OK;
if (aForTests) {
bool isAPZAware = StaticPrefs::test_events_async_enabled() &&
StaticPrefs::test_events_async_key_enabled();
bool isAPZAware = StaticPrefs::test_events_async_enabled();
rv = dispatcher->BeginTestInputTransaction(this, isAPZAware);
} else {
rv = dispatcher->BeginInputTransaction(this);

View File

@ -8647,8 +8647,7 @@ nsresult nsContentUtils::SendMouseEvent(
}
return presShell->HandleEvent(view->GetFrame(), &event, false, &status);
}
if (StaticPrefs::test_events_async_enabled() &&
StaticPrefs::test_events_async_mouse_enabled()) {
if (StaticPrefs::test_events_async_enabled()) {
status = widget->DispatchInputEvent(&event).mContentStatus;
} else {
nsresult rv = widget->DispatchEvent(&event, status);

View File

@ -782,8 +782,7 @@ nsDOMWindowUtils::SendWheelEvent(float aX, float aY, double aDeltaX,
wheelEvent.mRefPoint =
nsContentUtils::ToWidgetPoint(CSSPoint(aX, aY), offset, presContext);
if (StaticPrefs::test_events_async_enabled() &&
StaticPrefs::test_events_async_wheel_enabled()) {
if (StaticPrefs::test_events_async_enabled()) {
widget->DispatchInputEvent(&wheelEvent);
} else {
nsEventStatus status = nsEventStatus_eIgnore;
@ -935,8 +934,7 @@ nsresult nsDOMWindowUtils::SendTouchEventCommon(
return presShell->HandleEvent(view->GetFrame(), &event, false, &status);
}
if (StaticPrefs::test_events_async_enabled() &&
StaticPrefs::test_events_async_touch_enabled()) {
if (StaticPrefs::test_events_async_enabled()) {
status = widget->DispatchInputEvent(&event).mContentStatus;
} else {
nsresult rv = widget->DispatchEvent(&event, status);

View File

@ -173,7 +173,6 @@ static bool WillHandleMouseEvent(const WidgetMouseEventBase& aEvent) {
return aEvent.mMessage == eMouseMove || aEvent.mMessage == eMouseDown ||
aEvent.mMessage == eMouseUp || aEvent.mMessage == eDragEnd ||
(StaticPrefs::test_events_async_enabled() &&
StaticPrefs::test_events_async_mouse_enabled() &&
aEvent.mMessage == eMouseHitTest);
}

View File

@ -14287,26 +14287,6 @@
value: false
mirror: always
- name: test.events.async.key.enabled
type: RelaxedAtomicBool
value: true
mirror: always
- name: test.events.async.mouse.enabled
type: RelaxedAtomicBool
value: true
mirror: always
- name: test.events.async.touch.enabled
type: RelaxedAtomicBool
value: true
mirror: always
- name: test.events.async.wheel.enabled
type: RelaxedAtomicBool
value: true
mirror: always
- name: test.mousescroll
type: RelaxedAtomicBool
value: false