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

Issue 2247963002: Suppress drag and drop on links on touch screen. (Closed)

Created:
4 years, 4 months ago by hush (inactive)
Modified:
4 years, 3 months ago
Reviewers:
dtapuska, dcheng
CC:
chromium-reviews, blink-reviews, nzolghadr+blinkwatch_chromium.org, dtapuska+blinkwatch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Suppress drag and drop on links on touch screen. Both drag and drop and context menu use the same gesture: long press on Android. In order to maintain backwards compatibility, we need to suppress drag and drop for links on Android and continue to use long press gesture for context menus. This change also applies to other platforms with a touch screen, so that touch screen behavior is consistent on all platforms. BUG=636005 Committed: https://crrev.com/444ef13122a6e440c1462a187d8f4f7031935855 Cr-Commit-Position: refs/heads/master@{#415769}

Patch Set 1 #

Patch Set 2 : add images urls to the condition #

Total comments: 3

Patch Set 3 : Used a Settings instead of #ifdefined ANDROID. And added a test #

Patch Set 4 : html format #

Patch Set 5 : remove setting and apply the behavior change to all platforms #

Total comments: 4

Patch Set 6 : change the check to be hitTestResult.URLElement() #

Patch Set 7 : Use the correct png in test html #

Patch Set 8 : fix test touchadjustment/touch-links-longpress.html #

Patch Set 9 : space #

Patch Set 10 : rebase mac result so it uses the expected txt shared by all platforms #

Unified diffs Side-by-side diffs Delta from patch set Stats (+60 lines, -19 lines) Patch
D third_party/WebKit/LayoutTests/platform/mac/touchadjustment/touch-links-longpress-expected.txt View 1 2 3 4 5 6 7 8 9 1 chunk +0 lines, -13 lines 0 comments Download
M third_party/WebKit/LayoutTests/touchadjustment/touch-links-longpress.html View 1 2 3 4 5 6 7 8 2 chunks +9 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/core/input/GestureManager.cpp View 1 2 3 4 5 1 chunk +8 lines, -4 lines 0 comments Download
M third_party/WebKit/Source/web/tests/WebViewTest.cpp View 1 2 3 4 1 chunk +24 lines, -0 lines 0 comments Download
A third_party/WebKit/Source/web/tests/data/long_press_links_and_images.html View 1 2 3 4 5 6 1 chunk +19 lines, -0 lines 0 comments Download

Messages

Total messages: 48 (23 generated)
hush (inactive)
Hello Dave, could you take a look first, before I send it for owner review? ...
4 years, 4 months ago (2016-08-15 23:11:13 UTC) #2
hush (inactive)
PS2: there are cases when the hitTestResult contains no link element, but still contains an ...
4 years, 4 months ago (2016-08-16 23:23:13 UTC) #3
dtapuska
https://codereview.chromium.org/2247963002/diff/20001/third_party/WebKit/Source/core/input/GestureManager.cpp File third_party/WebKit/Source/core/input/GestureManager.cpp (right): https://codereview.chromium.org/2247963002/diff/20001/third_party/WebKit/Source/core/input/GestureManager.cpp#newcode257 third_party/WebKit/Source/core/input/GestureManager.cpp:257: IntPoint hitTestPoint = m_frame->view()->rootFrameToContents(gestureEvent.position()); Seems reasonable. I'd like to ...
4 years, 4 months ago (2016-08-17 13:39:49 UTC) #4
hush (inactive)
https://codereview.chromium.org/2247963002/diff/20001/third_party/WebKit/Source/core/input/GestureManager.cpp File third_party/WebKit/Source/core/input/GestureManager.cpp (right): https://codereview.chromium.org/2247963002/diff/20001/third_party/WebKit/Source/core/input/GestureManager.cpp#newcode257 third_party/WebKit/Source/core/input/GestureManager.cpp:257: IntPoint hitTestPoint = m_frame->view()->rootFrameToContents(gestureEvent.position()); On 2016/08/17 13:39:49, dtapuska wrote: ...
4 years, 4 months ago (2016-08-17 18:09:46 UTC) #5
dtapuska
https://codereview.chromium.org/2247963002/diff/20001/third_party/WebKit/Source/core/input/GestureManager.cpp File third_party/WebKit/Source/core/input/GestureManager.cpp (right): https://codereview.chromium.org/2247963002/diff/20001/third_party/WebKit/Source/core/input/GestureManager.cpp#newcode257 third_party/WebKit/Source/core/input/GestureManager.cpp:257: IntPoint hitTestPoint = m_frame->view()->rootFrameToContents(gestureEvent.position()); On 2016/08/17 18:09:46, hush wrote: ...
4 years, 4 months ago (2016-08-17 18:12:46 UTC) #6
hush (inactive)
4 years, 4 months ago (2016-08-19 19:14:16 UTC) #8
hush (inactive)
Hi dcheng@, PTAL third_party/WebKit
4 years, 4 months ago (2016-08-19 19:14:44 UTC) #9
dcheng
Just curious, but why do we need to add a toggle for this behavior at ...
4 years, 4 months ago (2016-08-19 19:22:05 UTC) #11
hush (inactive)
On 2016/08/19 19:22:05, dcheng wrote: > Just curious, but why do we need to add ...
4 years, 4 months ago (2016-08-19 21:30:12 UTC) #12
hush (inactive)
I just got my hands on a chromebook and tested its behavior. You can always ...
4 years, 4 months ago (2016-08-19 21:54:49 UTC) #13
hush (inactive)
ping dcheng@?
4 years, 4 months ago (2016-08-23 16:05:32 UTC) #14
hush (inactive)
Hello dcheng@, PTAL
4 years, 3 months ago (2016-08-29 17:58:55 UTC) #16
dcheng
https://codereview.chromium.org/2247963002/diff/100001/third_party/WebKit/Source/core/input/GestureManager.cpp File third_party/WebKit/Source/core/input/GestureManager.cpp (right): https://codereview.chromium.org/2247963002/diff/100001/third_party/WebKit/Source/core/input/GestureManager.cpp#newcode261 third_party/WebKit/Source/core/input/GestureManager.cpp:261: bool hitTestContainsLinks = hitTestResult.URLElement() || !hitTestResult.absoluteLinkURL().isNull() || !hitTestResult.absoluteImageURL().isNull() || ...
4 years, 3 months ago (2016-08-29 19:45:08 UTC) #17
hush (inactive)
https://codereview.chromium.org/2247963002/diff/100001/third_party/WebKit/Source/core/input/GestureManager.cpp File third_party/WebKit/Source/core/input/GestureManager.cpp (right): https://codereview.chromium.org/2247963002/diff/100001/third_party/WebKit/Source/core/input/GestureManager.cpp#newcode261 third_party/WebKit/Source/core/input/GestureManager.cpp:261: bool hitTestContainsLinks = hitTestResult.URLElement() || !hitTestResult.absoluteLinkURL().isNull() || !hitTestResult.absoluteImageURL().isNull() || ...
4 years, 3 months ago (2016-08-29 20:49:49 UTC) #18
dcheng
LGTM https://codereview.chromium.org/2247963002/diff/100001/third_party/WebKit/Source/core/input/GestureManager.cpp File third_party/WebKit/Source/core/input/GestureManager.cpp (right): https://codereview.chromium.org/2247963002/diff/100001/third_party/WebKit/Source/core/input/GestureManager.cpp#newcode261 third_party/WebKit/Source/core/input/GestureManager.cpp:261: bool hitTestContainsLinks = hitTestResult.URLElement() || !hitTestResult.absoluteLinkURL().isNull() || !hitTestResult.absoluteImageURL().isNull() ...
4 years, 3 months ago (2016-08-29 21:10:04 UTC) #19
hush (inactive)
https://codereview.chromium.org/2247963002/diff/100001/third_party/WebKit/Source/core/input/GestureManager.cpp File third_party/WebKit/Source/core/input/GestureManager.cpp (right): https://codereview.chromium.org/2247963002/diff/100001/third_party/WebKit/Source/core/input/GestureManager.cpp#newcode261 third_party/WebKit/Source/core/input/GestureManager.cpp:261: bool hitTestContainsLinks = hitTestResult.URLElement() || !hitTestResult.absoluteLinkURL().isNull() || !hitTestResult.absoluteImageURL().isNull() || ...
4 years, 3 months ago (2016-08-29 21:14:53 UTC) #20
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2247963002/120001
4 years, 3 months ago (2016-08-29 21:45:18 UTC) #23
hush (inactive)
dcheng@ PTAL PS 8: It fixes the layout test touchadjustment/touch-links-longpress.html. This test was originally written ...
4 years, 3 months ago (2016-08-30 00:42:59 UTC) #25
hush (inactive)
OK... I have no idea why the test touchadjustment/touch-links-longpress.html passes on Linux consistently but fails ...
4 years, 3 months ago (2016-08-30 18:37:22 UTC) #30
hush (inactive)
On 2016/08/30 18:37:22, hush wrote: > OK... I have no idea why the test touchadjustment/touch-links-longpress.html ...
4 years, 3 months ago (2016-08-30 18:41:44 UTC) #31
hush (inactive)
On 2016/08/30 18:41:44, hush wrote: > On 2016/08/30 18:37:22, hush wrote: > > OK... I ...
4 years, 3 months ago (2016-08-30 18:53:09 UTC) #32
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2247963002/200001
4 years, 3 months ago (2016-08-31 21:52:29 UTC) #43
dcheng
still LGTM
4 years, 3 months ago (2016-08-31 21:56:46 UTC) #44
commit-bot: I haz the power
Committed patchset #10 (id:200001)
4 years, 3 months ago (2016-08-31 21:57:37 UTC) #46
commit-bot: I haz the power
4 years, 3 months ago (2016-08-31 21:59:31 UTC) #48
Message was sent while issue was closed.
Patchset 10 (id:??) landed as
https://crrev.com/444ef13122a6e440c1462a187d8f4f7031935855
Cr-Commit-Position: refs/heads/master@{#415769}

Powered by Google App Engine
This is Rietveld 408576698