New issue
Advanced search Search tips

Issue 637207 link

Starred by 2 users

Issue metadata

Status: Archived
Owner: ----
Closed: Aug 2017
EstimatedDays: ----
NextAction: ----
OS: Android
Pri: 2
Type: Bug-Regression



Sign in to add a comment

Insertion Handle appears for Empty Editable Field

Reported by mahesh.i...@gmail.com, Aug 12 2016

Issue description

Steps to reproduce the problem:
1. Launch Chrome
2. Fetch m.tvpot.daum.net
3. Tap on search edit field --> Keyboard is displayed
4. Enter some text and tap on clear (x) button in the search edit field.
5. Insertion handler is shown even when the input field is empty.

What is the expected behavior?
Text gets cleared and insertion handler should not be shown.

What went wrong?
Insertion handler is displayed in empty editable field.

Did this work before? Yes It works well  in chrome base version 44 as I am comparing with that for now. Don't know exactly from when this might have appeared.

Chrome version: 52.0.2743.116  Channel: stable
OS Version: 6.0.1
Flash Version: Shockwave Flash 22.0 r0

I have analysed with 44 and 52 versions and here are my observations -- 

1) In 52, I can see that number of Frame updates are Large and TouchSelectionController receives a large number of OnSelectionBoundsChanged() calls. So, when the clear(x) button is pressed for this case, an update in TouchSelectionController is received for which "frame_metadata.selection.is_empty_text_form_control" is "false" and hence, TouchSelectionController proceeds to show the insertion handle. Shortly after, an OnSelectionBoundsChanged() update is received with "frame_metadata.selection.is_empty_text_form_control" as "true". But, insertion handle is already shown and response_pending_input_event_ variable is reset already.
So, insertion handle gets moved to start of Input field.

2) In 44, TouchSelectionController does not keep receiving large number of Frame updates and when the clear(x) button is pressed, it has the flag "frame_metadata.selection.is_empty_text_form_control" as "true" and TouchSelectionController does not show the Insertion Handle.

I am yet to investigate the root cause for this change in behaviour.
 
Note: To add to above, this issue can also be observed in Google search results page. But, this issue is not seen in Google search home page.
Project Member

Comment 2 by sheriffbot@chromium.org, Aug 14 2017

Status: Archived (was: Unconfirmed)
Issue has not been modified or commented on in the last 365 days, please re-open or file a new bug if this is still an issue.

For more details visit https://www.chromium.org/issue-tracking/autotriage - Your friendly Sheriffbot

Sign in to add a comment