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

Issue 1026493002: Allow only a user gesture to trigger autofill popup (Closed)

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

Description

[autofill] Allow only a user gesture to trigger autofill. If a script inserts text into an input field without a user gesture, then do not show the autofill popup. TEST=AutofillRendererTest.IgnoreNonUserGestureTextFieldChanges BUG=353001 Committed: https://crrev.com/6a3f8d9afcbb397f562e3a359ffbe39d59d278b9 Cr-Commit-Position: refs/heads/master@{#327204}

Patch Set 1 #

Patch Set 2 : Remove logs. #

Patch Set 3 : Disable user gesture check for tests. #

Total comments: 1

Patch Set 4 : Work in progress. #

Patch Set 5 : More work in progress. #

Patch Set 6 : Fix all tests. Still need refactoring and cleanup. #

Patch Set 7 : Refactorings and cleanup. #

Patch Set 8 : Cleanup. #

Patch Set 9 : Compile fix. #

Patch Set 10 : Fix typo. #

Patch Set 11 : Compile fix. #

Patch Set 12 : Void SetModifiers. #

Patch Set 13 : Do not use element.setValue in autofill tests. #

Patch Set 14 : Fix windows tests. #

Patch Set 15 : Do not show autofill popup if desktop IME is composing. #

Total comments: 3

Patch Set 16 : Good patch. #

Patch Set 17 : Check for composition after textFieldChange. #

Patch Set 18 : Cross-platform? #

Patch Set 19 : Cleanup #

Patch Set 20 : Fix comment. #

Patch Set 21 : Extract some logic into GetWindowsKeyCode. #

Patch Set 22 : Remove unused parameters. #

Patch Set 23 : Add a test. #

Total comments: 2

Patch Set 24 : Hide popup. #

Total comments: 4

Patch Set 25 : Keep IME behavior. #

Total comments: 2

Patch Set 26 : Rename var. #

Total comments: 11

Patch Set 27 : Fix comment wording, move assert to the top. #

Patch Set 28 : Do not layout frame. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+207 lines, -203 lines) Patch
M chrome/renderer/autofill/autofill_renderer_browsertest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 2 chunks +26 lines, -0 lines 0 comments Download
M chrome/renderer/autofill/password_autofill_agent_browsertest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 20 chunks +66 lines, -147 lines 0 comments Download
M chrome/renderer/autofill/password_generation_agent_browsertest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 5 chunks +14 lines, -45 lines 0 comments Download
M components/autofill/content/renderer/autofill_agent.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 1 chunk +0 lines, -3 lines 0 comments Download
M components/autofill/content/renderer/autofill_agent.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 6 chunks +6 lines, -7 lines 0 comments Download
M content/public/test/render_view_test.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 3 chunks +14 lines, -1 line 0 comments Download
M content/public/test/render_view_test.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 5 chunks +81 lines, -0 lines 0 comments Download

Messages

Total messages: 40 (10 generated)
please use gerrit instead
Evan, PTAL Patch Set 2.
5 years, 9 months ago (2015-03-20 17:49:34 UTC) #2
please use gerrit instead
Please don't review yet. User gesture requirement breaks a bunch of automated tests, which trigger ...
5 years, 9 months ago (2015-03-20 21:19:46 UTC) #3
please use gerrit instead
Evan, PTAL Patch Set 3.
5 years, 9 months ago (2015-03-23 21:50:52 UTC) #6
Evan Stade
test? https://codereview.chromium.org/1026493002/diff/40001/chrome/renderer/autofill/password_autofill_agent_browsertest.cc File chrome/renderer/autofill/password_autofill_agent_browsertest.cc (right): https://codereview.chromium.org/1026493002/diff/40001/chrome/renderer/autofill/password_autofill_agent_browsertest.cc#newcode887 chrome/renderer/autofill/password_autofill_agent_browsertest.cc:887: ->DisableUserGestureCheckForTests(); This doesn't seem right to me. Instead ...
5 years, 9 months ago (2015-03-23 22:07:12 UTC) #7
please use gerrit instead
On 2015/03/23 22:07:12, Evan Stade wrote: > test? > > https://codereview.chromium.org/1026493002/diff/40001/chrome/renderer/autofill/password_autofill_agent_browsertest.cc > File chrome/renderer/autofill/password_autofill_agent_browsertest.cc (right): ...
5 years, 9 months ago (2015-03-25 00:17:09 UTC) #8
please use gerrit instead
FYI, Android keyboard often uses composition to insert the text. Chrome does not consider composition ...
5 years, 8 months ago (2015-04-13 23:24:52 UTC) #9
please use gerrit instead
Aurimas says IME composition on Android should be treated as a user gesture. So this ...
5 years, 8 months ago (2015-04-14 00:49:34 UTC) #10
please use gerrit instead
blink-dev@ also says IME composition on Android can be treated as a user gesture.
5 years, 8 months ago (2015-04-15 21:17:56 UTC) #11
Evan Stade
didn't review tests yet, non-test code mostly lg https://codereview.chromium.org/1026493002/diff/280001/components/autofill/content/renderer/autofill_agent.cc File components/autofill/content/renderer/autofill_agent.cc (right): https://codereview.chromium.org/1026493002/diff/280001/components/autofill/content/renderer/autofill_agent.cc#newcode398 components/autofill/content/renderer/autofill_agent.cc:398: if ...
5 years, 8 months ago (2015-04-16 13:58:59 UTC) #12
please use gerrit instead
Thank you for the review, but the patch is not complete yet, sorry. https://codereview.chromium.org/1026493002/diff/280001/content/renderer/render_widget.cc File ...
5 years, 8 months ago (2015-04-16 16:08:35 UTC) #13
please use gerrit instead
Evan, PTAL Patch Set 23. Some android bots will continue to fail until the Blink ...
5 years, 8 months ago (2015-04-17 20:54:36 UTC) #14
Evan Stade
https://codereview.chromium.org/1026493002/diff/440001/components/autofill/content/renderer/autofill_agent.cc File components/autofill/content/renderer/autofill_agent.cc (right): https://codereview.chromium.org/1026493002/diff/440001/components/autofill/content/renderer/autofill_agent.cc#newcode416 components/autofill/content/renderer/autofill_agent.cc:416: // IME composition on desktop is used for CJK, ...
5 years, 8 months ago (2015-04-17 20:58:58 UTC) #15
please use gerrit instead
Evan, PTAL Patch Set 24. AutofillRendererTest.DesktopCompositionDoesNotTriggerAutofill will be failing until a Blink roll. It cannot ...
5 years, 8 months ago (2015-04-17 22:25:46 UTC) #16
Evan Stade
https://codereview.chromium.org/1026493002/diff/460001/components/autofill/content/renderer/autofill_agent.cc File components/autofill/content/renderer/autofill_agent.cc (right): https://codereview.chromium.org/1026493002/diff/460001/components/autofill/content/renderer/autofill_agent.cc#newcode412 components/autofill/content/renderer/autofill_agent.cc:412: HidePopup(); as per offline convo I think we should ...
5 years, 8 months ago (2015-04-20 22:40:31 UTC) #17
please use gerrit instead
Evan, PTAL Patch Set 25. https://codereview.chromium.org/1026493002/diff/460001/components/autofill/content/renderer/autofill_agent.cc File components/autofill/content/renderer/autofill_agent.cc (right): https://codereview.chromium.org/1026493002/diff/460001/components/autofill/content/renderer/autofill_agent.cc#newcode412 components/autofill/content/renderer/autofill_agent.cc:412: HidePopup(); On 2015/04/20 22:40:30, ...
5 years, 8 months ago (2015-04-20 23:51:27 UTC) #18
Evan Stade
+gcasto as it seems this affects behavior of passwords fields as well. Garrett can you ...
5 years, 8 months ago (2015-04-21 00:54:31 UTC) #20
please use gerrit instead
https://codereview.chromium.org/1026493002/diff/480001/components/autofill/content/renderer/autofill_agent.cc File components/autofill/content/renderer/autofill_agent.cc (right): https://codereview.chromium.org/1026493002/diff/480001/components/autofill/content/renderer/autofill_agent.cc#newcode716 components/autofill/content/renderer/autofill_agent.cc:716: base::AutoReset<bool> auto_ignore_text_changes(&ignore_text_changes_, true); On 2015/04/21 00:54:31, Evan Stade wrote: ...
5 years, 8 months ago (2015-04-21 17:02:47 UTC) #21
Garrett Casto
LGTM +vabr@ FYI I think this is fine. Since the password manager autofills on page ...
5 years, 8 months ago (2015-04-21 21:07:16 UTC) #23
please use gerrit instead
Brett, OWNERS PTAL in Patch Set 26: content/public/test/render_view_test.h content/public/test/render_view_test.cc
5 years, 8 months ago (2015-04-21 21:32:07 UTC) #25
please use gerrit instead
Actually, Jay would be a better OWNER for these particular files. - Brett + Jay, ...
5 years, 8 months ago (2015-04-21 21:35:41 UTC) #27
Jay Civelli
https://codereview.chromium.org/1026493002/diff/500001/content/public/test/render_view_test.cc File content/public/test/render_view_test.cc (right): https://codereview.chromium.org/1026493002/diff/500001/content/public/test/render_view_test.cc#newcode448 content/public/test/render_view_test.cc:448: void RenderViewTest::ProcessInputForAutofill() { I am confused on whether this ...
5 years, 8 months ago (2015-04-23 21:57:43 UTC) #28
please use gerrit instead
Jay, PTAL Patch Set 27 and comments inline. https://codereview.chromium.org/1026493002/diff/500001/content/public/test/render_view_test.cc File content/public/test/render_view_test.cc (right): https://codereview.chromium.org/1026493002/diff/500001/content/public/test/render_view_test.cc#newcode448 content/public/test/render_view_test.cc:448: void ...
5 years, 7 months ago (2015-04-27 21:20:34 UTC) #29
Jay Civelli
https://codereview.chromium.org/1026493002/diff/500001/content/public/test/render_view_test.cc File content/public/test/render_view_test.cc (right): https://codereview.chromium.org/1026493002/diff/500001/content/public/test/render_view_test.cc#newcode448 content/public/test/render_view_test.cc:448: void RenderViewTest::ProcessInputForAutofill() { On 2015/04/27 21:20:34, Rouslan Solomakhin wrote: ...
5 years, 7 months ago (2015-04-27 22:17:19 UTC) #30
please use gerrit instead
Jay, PTAL Patch Set 28. https://codereview.chromium.org/1026493002/diff/500001/content/public/test/render_view_test.cc File content/public/test/render_view_test.cc (right): https://codereview.chromium.org/1026493002/diff/500001/content/public/test/render_view_test.cc#newcode448 content/public/test/render_view_test.cc:448: void RenderViewTest::ProcessInputForAutofill() { On ...
5 years, 7 months ago (2015-04-27 23:49:55 UTC) #31
Jay Civelli
Thanks for the changes! LGTM
5 years, 7 months ago (2015-04-27 23:57:10 UTC) #32
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1026493002/540001
5 years, 7 months ago (2015-04-28 00:13:39 UTC) #35
commit-bot: I haz the power
Committed patchset #28 (id:540001)
5 years, 7 months ago (2015-04-28 01:00:13 UTC) #36
commit-bot: I haz the power
Patchset 28 (id:??) landed as https://crrev.com/6a3f8d9afcbb397f562e3a359ffbe39d59d278b9 Cr-Commit-Position: refs/heads/master@{#327204}
5 years, 7 months ago (2015-04-28 01:01:13 UTC) #37
Nico
Looks like PasswordAutofillAgentTest.ClearPreviewWithInlineAutocompletedUsername started failing consistently on DrMemory after this CL: http://build.chromium.org/p/chromium.memory.fyi/builders/Windows%20Browser%20%28DrMemory%20full%29%20%2811%29/builds/3223/steps/memory%20test%3A%20browser_tests_2/logs/PasswordAutofillAgentTest.ClearPreviewWithInlineAutocompletedUsername
5 years, 7 months ago (2015-05-10 21:42:57 UTC) #39
please use gerrit instead
5 years, 7 months ago (2015-05-11 16:34:12 UTC) #40
Message was sent while issue was closed.
On 2015/05/10 21:42:57, Nico wrote:
> Looks like
PasswordAutofillAgentTest.ClearPreviewWithInlineAutocompletedUsername
> started failing consistently on DrMemory after this CL:
> 
>
http://build.chromium.org/p/chromium.memory.fyi/builders/Windows%20Browser%20...

Yes, there's a bug for me here:
https://code.google.com/p/chromium/issues/detail?id=484910

Looks like a timeout. I will investigate.

Powered by Google App Engine
This is Rietveld 408576698