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

Issue 204343004: Add supports that allow Autofill to be initiated from textarea field (Closed)

Created:
6 years, 9 months ago by ziran.sun
Modified:
6 years, 9 months ago
Reviewers:
Ilya Sherman
CC:
chromium-reviews
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Visibility:
Public.

Description

Add supports that allow Autofill to be initiated from textarea field Handling both keyboard and mouse events in textarea that initiate autofill preview and fill form actions. Add test cases from browser tests aspect to cover page click and findformfieldfortextarea cases. BUG=332557 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=259076

Patch Set 1 : Original changes - this causes a NULL pointer dereference crash #

Patch Set 2 : Exclude textarea for autocomplete preview and fill. Hope this fixes the crash. #

Total comments: 2

Patch Set 3 : Update code as per Ilya's review comments #

Total comments: 6

Patch Set 4 : Rename test case #

Patch Set 5 : Correct the returned value expectations for OnSuggestionReturned() #

Unified diffs Side-by-side diffs Delta from patch set Stats (+523 lines, -227 lines) Patch
M chrome/renderer/autofill/autofill_renderer_browsertest.cc View 1 2 3 4 2 chunks +2 lines, -2 lines 0 comments Download
M chrome/renderer/autofill/form_autofill_browsertest.cc View 19 chunks +167 lines, -35 lines 0 comments Download
M chrome/renderer/autofill/page_click_tracker_browsertest.cc View 5 chunks +96 lines, -34 lines 0 comments Download
M components/autofill/content/renderer/autofill_agent.h View 1 2 3 4 6 chunks +14 lines, -9 lines 0 comments Download
M components/autofill/content/renderer/autofill_agent.cc View 1 2 3 4 13 chunks +87 lines, -42 lines 0 comments Download
M components/autofill/content/renderer/form_autofill_util.h View 3 chunks +10 lines, -8 lines 0 comments Download
M components/autofill/content/renderer/form_autofill_util.cc View 11 chunks +60 lines, -77 lines 0 comments Download
M components/autofill/content/renderer/form_cache.h View 2 chunks +2 lines, -1 line 0 comments Download
M components/autofill/content/renderer/form_cache.cc View 1 chunk +1 line, -1 line 0 comments Download
M components/autofill/content/renderer/page_click_listener.h View 2 chunks +7 lines, -7 lines 0 comments Download
M components/autofill/content/renderer/page_click_tracker.cc View 7 chunks +27 lines, -7 lines 0 comments Download
M components/autofill/content/renderer/password_autofill_agent.cc View 2 chunks +2 lines, -2 lines 0 comments Download
M components/autofill/core/browser/autocomplete_history_manager.h View 1 1 chunk +1 line, -0 lines 0 comments Download
M components/autofill/core/browser/autocomplete_history_manager.cc View 1 2 2 chunks +3 lines, -1 line 0 comments Download
M components/autofill/core/browser/autocomplete_history_manager_unittest.cc View 1 2 3 4 1 chunk +42 lines, -0 lines 0 comments Download
M components/autofill/core/browser/autofill_manager.cc View 1 1 chunk +2 lines, -1 line 0 comments Download

Messages

Total messages: 17 (0 generated)
ziran.sun
Textarea should not support autocomplete preview and fill. This is an attempt to fix Null ...
6 years, 9 months ago (2014-03-19 17:29:36 UTC) #1
Ilya Sherman
Please add some test coverage for the changes since your last CL. Otherwise, this looks ...
6 years, 9 months ago (2014-03-19 23:47:42 UTC) #2
ziran.sun
Test case added and updated code as per review comments. Please review. Thanks! https://codereview.chromium.org/204343004/diff/20001/components/autofill/core/browser/autocomplete_history_manager.cc File ...
6 years, 9 months ago (2014-03-20 19:03:41 UTC) #3
Ilya Sherman
https://codereview.chromium.org/204343004/diff/40001/components/autofill/core/browser/autocomplete_history_manager_unittest.cc File components/autofill/core/browser/autocomplete_history_manager_unittest.cc (right): https://codereview.chromium.org/204343004/diff/40001/components/autofill/core/browser/autocomplete_history_manager_unittest.cc#newcode228 components/autofill/core/browser/autocomplete_history_manager_unittest.cc:228: // Verify that no autocomplete suggestion is returned for ...
6 years, 9 months ago (2014-03-20 22:22:03 UTC) #4
ziran.sun
Addressed comments. Any chance for a short discussion on IRC? https://codereview.chromium.org/204343004/diff/40001/components/autofill/core/browser/autocomplete_history_manager_unittest.cc File components/autofill/core/browser/autocomplete_history_manager_unittest.cc (right): https://codereview.chromium.org/204343004/diff/40001/components/autofill/core/browser/autocomplete_history_manager_unittest.cc#newcode228 ...
6 years, 9 months ago (2014-03-21 12:00:21 UTC) #5
Ilya Sherman
https://codereview.chromium.org/204343004/diff/40001/components/autofill/core/browser/autocomplete_history_manager_unittest.cc File components/autofill/core/browser/autocomplete_history_manager_unittest.cc (right): https://codereview.chromium.org/204343004/diff/40001/components/autofill/core/browser/autocomplete_history_manager_unittest.cc#newcode228 components/autofill/core/browser/autocomplete_history_manager_unittest.cc:228: // Verify that no autocomplete suggestion is returned for ...
6 years, 9 months ago (2014-03-21 23:01:11 UTC) #6
ziran.sun
Test code updated. Please review. Thanks! https://codereview.chromium.org/204343004/diff/40001/components/autofill/core/browser/autocomplete_history_manager_unittest.cc File components/autofill/core/browser/autocomplete_history_manager_unittest.cc (right): https://codereview.chromium.org/204343004/diff/40001/components/autofill/core/browser/autocomplete_history_manager_unittest.cc#newcode228 components/autofill/core/browser/autocomplete_history_manager_unittest.cc:228: // Verify that ...
6 years, 9 months ago (2014-03-24 15:24:48 UTC) #7
Ilya Sherman
LGTM. Thanks, Ziran :)
6 years, 9 months ago (2014-03-24 17:43:48 UTC) #8
Ilya Sherman
The CQ bit was checked by isherman@chromium.org
6 years, 9 months ago (2014-03-24 17:43:53 UTC) #9
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/ziran.sun@samsung.com/204343004/80001
6 years, 9 months ago (2014-03-24 17:44:17 UTC) #10
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 9 months ago (2014-03-24 19:19:11 UTC) #11
commit-bot: I haz the power
Try jobs failed on following builders: tryserver.chromium on linux_chromium_chromeos_rel
6 years, 9 months ago (2014-03-24 19:19:11 UTC) #12
Ilya Sherman
The CQ bit was checked by isherman@chromium.org
6 years, 9 months ago (2014-03-24 19:20:07 UTC) #13
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/ziran.sun@samsung.com/204343004/80001
6 years, 9 months ago (2014-03-24 19:20:28 UTC) #14
Ilya Sherman
The CQ bit was unchecked by isherman@chromium.org
6 years, 9 months ago (2014-03-24 19:24:23 UTC) #15
Ilya Sherman
The CQ bit was checked by isherman@chromium.org
6 years, 9 months ago (2014-03-24 19:24:24 UTC) #16
commit-bot: I haz the power
6 years, 9 months ago (2014-03-25 01:15:19 UTC) #17
Message was sent while issue was closed.
Change committed as 259076

Powered by Google App Engine
This is Rietveld 408576698