DescriptionDo not dispatch gesture events to disabled views
The current logic in RootView::DispatchGestureEvent() will dispatch
gesture events to disabled views in some circumstances but not others.
The correct behaviour here is:
* Disabled views may be the target of a gesture event.
* Gesture events should never be dispatched to a disabled view,
and instead the event should simply be marked as handled.
This prevents context menus being shown when long-pressing
disabled textfields (issue 337568).
BUG=403893, 337568
TEST=WidgetTest.DisabledGestureEventTarget,
RootViewTest.ContextMenuFromLongPress,
RootViewTest.ContextMenuFromLongPressOnDisabledView
Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=290159
Patch Set 1 #
Total comments: 4
Patch Set 2 : cleanup #
Messages
Total messages: 13 (0 generated)
|