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

Issue 732856 link

Starred by 2 users

Issue metadata

Status: Assigned
Owner:
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: Android
Pri: 3
Type: Bug

Blocking:
issue 693204



Sign in to add a comment

[Autofill] Backspace isn't considered as UserGesture

Project Member Reported by michaelbai@chromium.org, Jun 13 2017

Issue description

In Android, WebUserGestureIndicator::IsProcessingUserGesture() returns false when backspace is entered. This at least make autofill/autocomplete not work properly.

The scenario is
- Uses chrome android browser to navigate a login page (like amazon login page), if the email/password autofilled, clear the textfield.

- Enter a valid email address, you might be prompted more than one suggestions like
  a@gmail.com
  ab@gmail.com

- enter 'ab', only ab@gmail.com will show as suggestion
- type backspace, the text field value is 'a', but only ab@gmail.com is shown as suggestion.

Expected behavior: both a@gmail.com, ab@gmail.com should be shown as suggestions.

It because autofill agent doesn't think typing backspace is user gesture because WebUserGestureIndicator::IsProcessingUserGesture() returns false.
 
Blocking: 693204
Cc: ekaramad@chromium.org
Hmm.. I just briefly looked at WebInputMethodControllerImpl.cpp implementation which keeps track of user gesture through RAII design pattern of UserGestureIndicator[1], but it does not cover the whole IME commands such as SetCompositionFromExistingText() / DeleteSurroundingText().

Google English/Latin Keyboard these days use a bit more complicated deletion steps. That can be confirmed if this issue does not repro with Samsung keyboard.

[1] https://cs.chromium.org/chromium/src/third_party/WebKit/Source/core/exported/WebInputMethodControllerImpl.cpp?type=cs&l=71

cc'ing ekaramad@ FYI

Comment 3 by felipeal@google.com, Jun 15 2017

Cc: felipeal@chromium.org
Cc: -felipeal@chromium.org eirage@chromium.org mustaq@chromium.org
Owner: eirage@chromium.org
Status: Assigned (was: Untriaged)
I think it is reasonable to set the user gesture flag in these IME composition methods.

eirage@ can you work with mustaq's guidance how to set them?
Cc: aelias@chromium.org

Comment 6 by aelias@chromium.org, Jun 22 2017

Agreed.  There are many missing places in the code where we should be setting user gesture flag but are not, because we never made a systematic triage.

Comment 7 by sgu...@chromium.org, Sep 27 2017

Cc: -sgu...@chromium.org
Labels: UserActivation

Comment 9 by ma...@chromium.org, May 1 2018

Status: Untriaged (was: Assigned)
Status: Assigned (was: Untriaged)
Status: Available (was: Assigned)
Status: (was: Available)
Cc: -mustaq@chromium.org
Owner: mustaq@chromium.org
Status: Assigned
(I meant to un-assign myself but somehow clear the status :)
Mustaq will take over this one :)

Sign in to add a comment