mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-02-26 04:09:50 +00:00
Backed out changeset e5c1b9223818 (bug 1852243) causing problems in event handling for a lot of tests.
This commit is contained in:
parent
9da5439dd7
commit
6dc0b3ef8f
@ -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);
|
||||
|
@ -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);
|
||||
|
@ -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);
|
||||
|
@ -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);
|
||||
}
|
||||
|
||||
|
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user