Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(487)

Issue 267313008: First-cut at fixing unhandled Tap event returns in Blink. (Closed)

Created:
6 years, 7 months ago by Donn Denman
Modified:
6 years, 6 months ago
CC:
blink-reviews, blink-reviews-events_chromium.org, dglazkov+blink, eae+blinkwatch, samarth
Base URL:
https://chromium.googlesource.com/chromium/blink.git@master
Visibility:
Public.

Description

First-cut at fixing unhandled Tap event returns in Blink. We want to be able to recognize tap events that the page has not handled and provide some useful default behavior for those events. Currently taps are considered handled in many cases when they really have not been handled by the page or default behavior. This CL is a beginning at correcting this. We plan to also check if the tap interacted with an element with an ARIA role that indicates it was interactive. BUG=355154 Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=175514

Patch Set 1 #

Total comments: 2

Patch Set 2 : Simplify, so HandleMousePressEventSingleClick always returns false. #

Patch Set 3 : Add a comment. #

Patch Set 4 : Added a unit test. #

Patch Set 5 : Added missing html file for the unit test. #

Patch Set 6 : Added separate isInteractiveNode() static function to EventHandler.cpp. #

Total comments: 4

Patch Set 7 : Add Layout tests, and remove unit tests. Cleanup EventHandler. #

Total comments: 6

Patch Set 8 : Simplified the layout test's termination logic. #

Total comments: 2

Patch Set 9 : Removed handlers for all events other than mousedown. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+81 lines, -2 lines) Patch
A LayoutTests/fast/events/touch/gesture/gesture-tap-result.html View 1 2 3 4 5 6 7 8 1 chunk +60 lines, -0 lines 0 comments Download
A LayoutTests/fast/events/touch/gesture/gesture-tap-result-expected.txt View 1 2 3 4 5 6 7 1 chunk +18 lines, -0 lines 0 comments Download
M Source/core/page/EventHandler.cpp View 1 2 3 4 5 6 1 chunk +3 lines, -2 lines 0 comments Download

Messages

Total messages: 18 (0 generated)
donnd
Guys, PTAL at my hacky "fix" for the unhandled Tap event in Blink. I have ...
6 years, 7 months ago (2014-05-09 01:57:50 UTC) #1
jdduke (slow)
Adding a few folks that may be more familiar with this code. zeeshanq@, we're seeing ...
6 years, 7 months ago (2014-05-09 23:33:33 UTC) #2
Rick Byers
Sorry for the delay - I missed this due to travel to BlinkOn etc. I ...
6 years, 7 months ago (2014-05-16 11:10:42 UTC) #3
Donn Denman
Rick, Please take another look at this CL. I've updated the code along the lines ...
6 years, 7 months ago (2014-05-27 05:58:14 UTC) #4
Rick Byers
On 2014/05/27 05:58:14, Donn Denman wrote: > Rick, Please take another look at this CL. ...
6 years, 6 months ago (2014-05-28 17:36:57 UTC) #5
donnd
Rick, this code should now be up-to-date with your original guidelines: * New Layout test ...
6 years, 6 months ago (2014-05-31 03:22:54 UTC) #6
donnd
On 2014/05/28 17:36:57, Rick Byers wrote: > I don't think we should choose the testing ...
6 years, 6 months ago (2014-05-31 03:28:08 UTC) #7
donnd
Rick, PTAL. The change to the test infrastructure to return whether the event was handled ...
6 years, 6 months ago (2014-06-03 04:41:12 UTC) #8
Rick Byers
Thanks Donn, sorry for the delay. Just a couple little questions on the test then ...
6 years, 6 months ago (2014-06-03 14:41:53 UTC) #9
donnd
Rick, PTAL. It seemed that there were a few things that were not really needed ...
6 years, 6 months ago (2014-06-03 20:24:58 UTC) #10
Rick Byers
Nice simplifications, thanks! One more suggestion to simplify it further, then it LGTM (feel free ...
6 years, 6 months ago (2014-06-03 21:27:25 UTC) #11
donnd
Thanks Rick! https://codereview.chromium.org/267313008/diff/140001/LayoutTests/fast/events/touch/gesture/gesture-tap-result.html File LayoutTests/fast/events/touch/gesture/gesture-tap-result.html (right): https://codereview.chromium.org/267313008/diff/140001/LayoutTests/fast/events/touch/gesture/gesture-tap-result.html#newcode31 LayoutTests/fast/events/touch/gesture/gesture-tap-result.html:31: consumes.addEventListener("mousedown", consumeCallback, false); On 2014/06/03 21:27:25, Rick ...
6 years, 6 months ago (2014-06-03 21:40:24 UTC) #12
donnd
The CQ bit was checked by donnd@google.com
6 years, 6 months ago (2014-06-03 21:40:58 UTC) #13
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/donnd@chromium.org/267313008/160001
6 years, 6 months ago (2014-06-03 21:41:27 UTC) #14
commit-bot: I haz the power
FYI, CQ is re-trying this CL (attempt #1). The failing builders are: linux_blink_rel on tryserver.blink ...
6 years, 6 months ago (2014-06-04 01:18:51 UTC) #15
donnd
The CQ bit was checked by donnd@google.com
6 years, 6 months ago (2014-06-04 20:38:52 UTC) #16
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/donnd@chromium.org/267313008/160001
6 years, 6 months ago (2014-06-04 20:39:51 UTC) #17
commit-bot: I haz the power
6 years, 6 months ago (2014-06-04 20:40:40 UTC) #18
Message was sent while issue was closed.
Change committed as 175514

Powered by Google App Engine
This is Rietveld 408576698