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

Issue 870833002: [android] Autofill popup behavior fixes. (Closed)

Created:
5 years, 11 months ago by please use gerrit instead
Modified:
5 years, 10 months ago
CC:
chromium-reviews, mlamouri+watch-content_chromium.org, creis+watch_chromium.org, browser-components-watch_chromium.org, nasko+codewatch_chromium.org, jam, darin-cc_chromium.org, mkwst+moarreviews-renderer_chromium.org, estade+watch_chromium.org, rouslan+autofillwatch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

[android] Autofill popup behavior fixes. - Don't hide autofill popup on browser height change on Android. Android keyboard can show or hide a strip of suggestions when user switches between input fields. If the input field triggers showing the autofill popup, the keyboard resize will hide it, which causes a UI flash. - Remove redundant Views code to hide autofill popup on window resize. Browser process now has a cross-platform way to listen to window resize and close the autofill popup. Removed Views-only resize listener was also firing on window move. Removing it means that moving the window without resizing it will not close the autofill popup. The popup stays attached to the field during window move, however. - Let autofill know when a password popup may be showing. This enables autofill agent to hide the popup when the page scrolls. - Re-enable showing username suggestions on first click on Android, which now behaves on par with desktop. BUG=430318 Committed: https://crrev.com/2f5993f9a83beb7c92dbaa31847643d9cd41bf13 Cr-Commit-Position: refs/heads/master@{#313633}

Patch Set 1 #

Patch Set 2 : MainFrameWasResized hides the popup only on Mac. #

Total comments: 2

Patch Set 3 : Remove redundant hide-on-resize on Views. #

Total comments: 7

Patch Set 4 : Update expectations of old test and add a new test. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+67 lines, -63 lines) Patch
M chrome/browser/ui/autofill/autofill_popup_controller_interactive_uitest.cc View 1 2 3 1 chunk +16 lines, -6 lines 0 comments Download
M chrome/browser/ui/autofill/chrome_autofill_client.h View 1 2 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/ui/autofill/chrome_autofill_client.cc View 1 2 1 chunk +7 lines, -1 line 0 comments Download
M chrome/browser/ui/views/autofill/autofill_popup_base_view.h View 1 2 5 chunks +9 lines, -11 lines 0 comments Download
M chrome/browser/ui/views/autofill/autofill_popup_base_view.cc View 1 2 5 chunks +6 lines, -15 lines 0 comments Download
M chrome/browser/ui/views/autofill/autofill_popup_base_view_browsertest.cc View 1 2 1 chunk +4 lines, -4 lines 0 comments Download
M chrome/browser/ui/views/autofill/autofill_popup_view_views.h View 1 2 1 chunk +1 line, -4 lines 0 comments Download
M chrome/browser/ui/views/autofill/autofill_popup_view_views.cc View 1 2 2 chunks +4 lines, -3 lines 0 comments Download
M chrome/browser/ui/views/autofill/password_generation_popup_view_views.h View 1 2 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/ui/views/autofill/password_generation_popup_view_views.cc View 1 2 2 chunks +4 lines, -3 lines 0 comments Download
M components/autofill/content/renderer/autofill_agent.cc View 1 2 2 chunks +1 line, -6 lines 0 comments Download
M content/browser/renderer_host/render_widget_host_delegate.h View 1 2 1 chunk +2 lines, -2 lines 0 comments Download
M content/browser/renderer_host/render_widget_host_impl.cc View 1 2 2 chunks +4 lines, -1 line 0 comments Download
M content/browser/web_contents/web_contents_impl.h View 1 2 1 chunk +2 lines, -2 lines 0 comments Download
M content/browser/web_contents/web_contents_impl.cc View 1 2 1 chunk +4 lines, -2 lines 0 comments Download
M content/public/browser/web_contents_observer.h View 1 2 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 34 (11 generated)
please use gerrit instead
Garrett, PTAL.
5 years, 11 months ago (2015-01-23 00:10:00 UTC) #2
Evan Stade
On 2015/01/23 00:10:00, Rouslan Solomakhin wrote: > Garrett, PTAL. nit: this never hides the popup ...
5 years, 11 months ago (2015-01-23 02:16:13 UTC) #3
please use gerrit instead
On 2015/01/23 02:16:13, Evan Stade wrote: > On 2015/01/23 00:10:00, Rouslan Solomakhin wrote: > > ...
5 years, 11 months ago (2015-01-23 21:55:58 UTC) #5
please use gerrit instead
Garrett & Evan, PTAL Patch Set 2.
5 years, 11 months ago (2015-01-23 22:24:02 UTC) #6
Evan Stade
https://codereview.chromium.org/870833002/diff/20001/chrome/browser/ui/autofill/chrome_autofill_client.cc File chrome/browser/ui/autofill/chrome_autofill_client.cc (right): https://codereview.chromium.org/870833002/diff/20001/chrome/browser/ui/autofill/chrome_autofill_client.cc#newcode224 chrome/browser/ui/autofill/chrome_autofill_client.cc:224: // Views hides autofill popup in AutofillPopupBaseView::OnWidgetBoundsChanged. maybe you ...
5 years, 11 months ago (2015-01-23 22:28:00 UTC) #7
please use gerrit instead
On 2015/01/23 22:28:00, Evan Stade wrote: > https://codereview.chromium.org/870833002/diff/20001/chrome/browser/ui/autofill/chrome_autofill_client.cc > File chrome/browser/ui/autofill/chrome_autofill_client.cc (right): > > https://codereview.chromium.org/870833002/diff/20001/chrome/browser/ui/autofill/chrome_autofill_client.cc#newcode224 ...
5 years, 11 months ago (2015-01-23 22:28:34 UTC) #8
please use gerrit instead
Evan & Garrett, PTAL Patch Set 3. https://codereview.chromium.org/870833002/diff/20001/chrome/browser/ui/autofill/chrome_autofill_client.cc File chrome/browser/ui/autofill/chrome_autofill_client.cc (right): https://codereview.chromium.org/870833002/diff/20001/chrome/browser/ui/autofill/chrome_autofill_client.cc#newcode224 chrome/browser/ui/autofill/chrome_autofill_client.cc:224: // Views ...
5 years, 10 months ago (2015-01-26 18:51:14 UTC) #11
please use gerrit instead
To clarify Patch Set 3: I've removed the code in Views that was closing autofill ...
5 years, 10 months ago (2015-01-26 19:41:43 UTC) #12
Evan Stade
lgtm but I would appreciate if Scott could take a look at the FocusManager stuff. ...
5 years, 10 months ago (2015-01-26 20:21:54 UTC) #14
sky
https://codereview.chromium.org/870833002/diff/80001/chrome/browser/ui/views/autofill/autofill_popup_base_view.cc File chrome/browser/ui/views/autofill/autofill_popup_base_view.cc (right): https://codereview.chromium.org/870833002/diff/80001/chrome/browser/ui/views/autofill/autofill_popup_base_view.cc#newcode101 chrome/browser/ui/views/autofill/autofill_popup_base_view.cc:101: focus_manager_->UnregisterAccelerators(this); On 2015/01/26 20:21:54, Evan Stade wrote: > Seems ...
5 years, 10 months ago (2015-01-26 22:26:53 UTC) #15
please use gerrit instead
Please see my replies inline. https://codereview.chromium.org/870833002/diff/80001/chrome/browser/ui/autofill/autofill_popup_controller_interactive_uitest.cc File chrome/browser/ui/autofill/autofill_popup_controller_interactive_uitest.cc (right): https://codereview.chromium.org/870833002/diff/80001/chrome/browser/ui/autofill/autofill_popup_controller_interactive_uitest.cc#newcode106 chrome/browser/ui/autofill/autofill_popup_controller_interactive_uitest.cc:106: gfx::Rect new_bounds = browser()->window()->GetBounds(); ...
5 years, 10 months ago (2015-01-26 23:49:03 UTC) #16
Garrett Casto
lgtm
5 years, 10 months ago (2015-01-26 23:50:20 UTC) #17
Evan Stade
https://codereview.chromium.org/870833002/diff/80001/chrome/browser/ui/views/autofill/autofill_popup_base_view.cc File chrome/browser/ui/views/autofill/autofill_popup_base_view.cc (right): https://codereview.chromium.org/870833002/diff/80001/chrome/browser/ui/views/autofill/autofill_popup_base_view.cc#newcode101 chrome/browser/ui/views/autofill/autofill_popup_base_view.cc:101: focus_manager_->UnregisterAccelerators(this); On 2015/01/26 23:49:03, Rouslan Solomakhin wrote: > On ...
5 years, 10 months ago (2015-01-27 00:01:43 UTC) #18
please use gerrit instead
Evan, please see my reply inline. https://codereview.chromium.org/870833002/diff/80001/chrome/browser/ui/views/autofill/autofill_popup_base_view.cc File chrome/browser/ui/views/autofill/autofill_popup_base_view.cc (right): https://codereview.chromium.org/870833002/diff/80001/chrome/browser/ui/views/autofill/autofill_popup_base_view.cc#newcode101 chrome/browser/ui/views/autofill/autofill_popup_base_view.cc:101: focus_manager_->UnregisterAccelerators(this); On 2015/01/27 ...
5 years, 10 months ago (2015-01-27 20:02:41 UTC) #21
please use gerrit instead
On 2015/01/27 20:02:41, Rouslan Solomakhin wrote: > Evan, please see my reply inline. > > ...
5 years, 10 months ago (2015-01-27 20:28:37 UTC) #22
please use gerrit instead
Nasko, OWNERS PTAL content/.
5 years, 10 months ago (2015-01-28 20:54:35 UTC) #24
sky
LGTM
5 years, 10 months ago (2015-01-28 21:30:03 UTC) #25
please use gerrit instead
David, OWNERS PTAL content/.
5 years, 10 months ago (2015-01-28 22:35:04 UTC) #28
davidben
content/ lgtm
5 years, 10 months ago (2015-01-28 22:47:36 UTC) #29
Evan Stade
lgtm
5 years, 10 months ago (2015-01-28 23:54:10 UTC) #30
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/870833002/140001
5 years, 10 months ago (2015-01-28 23:57:09 UTC) #32
commit-bot: I haz the power
Committed patchset #4 (id:140001)
5 years, 10 months ago (2015-01-29 00:18:59 UTC) #33
commit-bot: I haz the power
5 years, 10 months ago (2015-01-29 00:20:08 UTC) #34
Message was sent while issue was closed.
Patchset 4 (id:??) landed as
https://crrev.com/2f5993f9a83beb7c92dbaa31847643d9cd41bf13
Cr-Commit-Position: refs/heads/master@{#313633}

Powered by Google App Engine
This is Rietveld 408576698