New issue
Advanced search Search tips
Note: Color blocks (like or ) mean that a user may not be available. Tooltip shows the reason.

Issue 673209 link

Starred by 3 users

Issue metadata

Status: Fixed
Owner:
Closed: Dec 2016
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: Android
Pri: 2
Type: Bug



Sign in to add a comment

Paste dialog from long press disappears if finger moves afterwards

Reported by fancla...@gmail.com, Dec 12 2016

Issue description

Steps to reproduce the problem:
1. Launch Chrome app
2. Long press empty area to paste string
   (Make sure exist string in clipboard)
3. When dialog is showing after user long press, don't release finger and move the finger cause the dialog missing.
(You can check the attached video for repo steps.)

What is the expected behavior?
Paste dialog is keep showing util user touch screen again to cancel dialog.
Hope paste dialog behavior in webview is same as EditText behavior.
After comparing the difference, the paste dialog from EditText is showing when receiving Action_UP not long press moment from webview.

What went wrong?
Paste dialog from long press is missing when user long press and move finger in the same time.

Did this work before? No 

Chrome version: 54.0.2840.85  Channel: n/a
OS Version: Android N 7.0
Flash Version: Shockwave Flash 23.0 r0

Please check the video for the behavior difference in paste dialog from Webview and EditText.
The time to show dialog is different. Show dialog when getting Action_UP from user is the behavior we expected.
 
Webview.mp4
820 KB View Download
EditText.mp4
542 KB View Download
Owner: tedc...@chromium.org
Status: Assigned (was: Unconfirmed)
Thanks for your report! Able to repro this issue on Nexus 5x/7.1 
@tedchoc: Can you please assign it to the right owner?
Cc: tedc...@chromium.org
Owner: aelias@chromium.org

Comment 3 by aelias@chromium.org, Dec 14 2016

Cc: aelias@chromium.org
Components: -UI Blink>Editing>Selection
Owner: amaralp@chromium.org
Summary: Paste dialog from long press disappears if finger moves afterwards (was: Paste dialog from long press is missing when device is sensitive. )
I can repro.  I'm guessing this might be code for selection-drag activating in this Paste case where it doesn't make sense.
The menu is being cleared because |ContentViewCore.onScrollBeginEventAck()| is being called which clears the menu.

Maybe the fix is to have the Paste menu act like the Copy/Cut/Paste floating menu and move according to the scroll.

Comment 5 by aelias@chromium.org, Dec 14 2016

The menu is cleared even when the page is not scrollable.  Perhaps we could clear it on scroll update instead of scroll begin at least?
Project Member

Comment 6 by bugdroid1@chromium.org, Dec 15 2016

The following revision refers to this bug:
  https://chromium.googlesource.com/chromium/src.git/+/99f54b1704faa5413d106b23a64a434368ea9628

commit 99f54b1704faa5413d106b23a64a434368ea9628
Author: amaralp <amaralp@chromium.org>
Date: Thu Dec 15 01:35:04 2016

Moving hiding of paste menu from scroll start to scroll update

Previously we were hiding the paste menu even when the page didn't
scroll at all. Moving the hiding to update ensures that the menu
is only cleared if we actually scrolled.

BUG= 673209 

Review-Url: https://codereview.chromium.org/2580583002
Cr-Commit-Position: refs/heads/master@{#438708}

[modify] https://crrev.com/99f54b1704faa5413d106b23a64a434368ea9628/content/public/android/java/src/org/chromium/content/browser/ContentViewCore.java

Status: Fixed (was: Assigned)

Comment 8 by fancla...@gmail.com, Dec 15 2016

Thanks for quickly reply and solution.

Comment 9 by yaoyi_t...@htc.com, Jan 3 2017

Hi Owner,
Can you share the release plan of Chrome which include this fix? Thanks.
The fix is in M57 which is scheduled for release on Stable on March 14th.

Sign in to add a comment