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

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

Created:
6 years, 10 months ago by ziran.sun
Modified:
6 years, 9 months ago
Reviewers:
tkent, 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 R=isherman@chromium.org Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=257476

Patch Set 1 #

Patch Set 2 : Temporarily keep textFieldDidiChange(const WebInputElement&) due to Blink roll delay #

Total comments: 44

Patch Set 3 : Update code as per review comments #

Total comments: 24

Patch Set 4 : Update codes as per Ilya's 2nd set comments #

Total comments: 52

Patch Set 5 : Update code as per Ilya's 3rd set of review comments - all comments addressed #

Total comments: 10

Patch Set 6 : Update code as per Ilya's 4th set review comments #

Patch Set 7 : Rebase and clean code using common methods introduced in WebFormControlElement interface #

Total comments: 27

Patch Set 8 : Rebase and update code as per Ilya's review comments #

Total comments: 2

Patch Set 9 : Rebase and addressed Ilya's final comment #

Patch Set 10 : Condition wrap correction #

Total comments: 10
Unified diffs Side-by-side diffs Delta from patch set Stats (+481 lines, -226 lines) Patch
M chrome/renderer/autofill/autofill_renderer_browsertest.cc View 1 2 3 4 5 6 7 2 chunks +2 lines, -2 lines 0 comments Download
M chrome/renderer/autofill/form_autofill_browsertest.cc View 1 2 3 4 5 6 19 chunks +167 lines, -35 lines 0 comments Download
M chrome/renderer/autofill/page_click_tracker_browsertest.cc View 1 2 3 4 5 6 7 5 chunks +96 lines, -34 lines 0 comments Download
M components/autofill/content/renderer/autofill_agent.h View 1 2 3 4 5 6 7 8 6 chunks +14 lines, -9 lines 0 comments Download
M components/autofill/content/renderer/autofill_agent.cc View 1 2 3 4 5 6 7 8 12 chunks +93 lines, -43 lines 10 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 1 2 3 4 5 6 7 8 9 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 1 2 3 4 2 chunks +7 lines, -7 lines 0 comments Download
M components/autofill/content/renderer/page_click_tracker.cc View 1 2 3 4 5 7 chunks +27 lines, -7 lines 0 comments Download
M components/autofill/content/renderer/password_autofill_agent.cc View 1 2 3 4 5 2 chunks +2 lines, -2 lines 0 comments Download

Messages

Total messages: 28 (0 generated)
ziran.sun
Please review together with https://codereview.chromium.org/133443011/ Thanks!
6 years, 10 months ago (2014-02-05 15:30:14 UTC) #1
ziran.sun
Temporarily keep textFieldDidiChange(const WebInputElement&) due to Blink roll delay
6 years, 10 months ago (2014-02-07 10:40:59 UTC) #2
tkent
lgtm for blink::WebAutofillClient update procedure.
6 years, 10 months ago (2014-02-10 00:00:24 UTC) #3
Ilya Sherman
https://chromiumcodereview.appspot.com/140093005/diff/130001/components/autofill/content/renderer/autofill_agent.cc File components/autofill/content/renderer/autofill_agent.cc (right): https://chromiumcodereview.appspot.com/140093005/diff/130001/components/autofill/content/renderer/autofill_agent.cc#newcode295 components/autofill/content/renderer/autofill_agent.cc:295: } Is this method needed in addition to the ...
6 years, 10 months ago (2014-02-14 02:44:39 UTC) #4
ziran.sun
Updated code as per review comments. Thanks! https://codereview.chromium.org/140093005/diff/130001/components/autofill/content/renderer/autofill_agent.cc File components/autofill/content/renderer/autofill_agent.cc (right): https://codereview.chromium.org/140093005/diff/130001/components/autofill/content/renderer/autofill_agent.cc#newcode295 components/autofill/content/renderer/autofill_agent.cc:295: } On ...
6 years, 10 months ago (2014-02-17 15:43:44 UTC) #5
Ilya Sherman
https://codereview.chromium.org/140093005/diff/130001/components/autofill/content/renderer/autofill_agent.cc File components/autofill/content/renderer/autofill_agent.cc (right): https://codereview.chromium.org/140093005/diff/130001/components/autofill/content/renderer/autofill_agent.cc#newcode299 components/autofill/content/renderer/autofill_agent.cc:299: bool is_focused) { On 2014/02/17 15:43:45, ziran.sun wrote: > ...
6 years, 10 months ago (2014-02-22 06:24:19 UTC) #6
ziran.sun
Update code as per Ilya's 2nd set comments. Please review together with updates in https://codereview.chromium.org/130213005/ ...
6 years, 10 months ago (2014-02-25 16:10:02 UTC) #7
Ilya Sherman
Please try to reply to every review comment, either by clicking the "Done" link to ...
6 years, 10 months ago (2014-02-26 00:12:07 UTC) #8
ziran.sun
Update code as per Ilya's 3rd set of comments. All comments have been addressed. https://codereview.chromium.org/140093005/diff/380001/components/autofill/content/renderer/autofill_agent.cc ...
6 years, 9 months ago (2014-02-26 18:11:49 UTC) #9
Ilya Sherman
Thanks, this is looking pretty good :) (Note, mostly for myself: I haven't yet looked ...
6 years, 9 months ago (2014-03-01 02:50:53 UTC) #10
ziran.sun
Update code and all comments have been addressed. Please review. Thanks! https://codereview.chromium.org/140093005/diff/400001/components/autofill/content/renderer/autofill_agent.cc File components/autofill/content/renderer/autofill_agent.cc (right): ...
6 years, 9 months ago (2014-03-03 19:23:31 UTC) #11
ziran.sun
Cleaned code using common methods newly introduced in WebFormControlElement interface. Please review. Thanks!
6 years, 9 months ago (2014-03-12 17:41:19 UTC) #12
Ilya Sherman
Lots of little comments, but otherwise looks great. Thanks, Ziran! https://codereview.chromium.org/140093005/diff/440001/chrome/renderer/autofill/page_click_tracker_browsertest.cc File chrome/renderer/autofill/page_click_tracker_browsertest.cc (right): https://codereview.chromium.org/140093005/diff/440001/chrome/renderer/autofill/page_click_tracker_browsertest.cc#newcode24 ...
6 years, 9 months ago (2014-03-14 07:24:46 UTC) #13
ziran.sun
Rebased and Updated code as per Ilya's comments. Please review. Thanks! https://codereview.chromium.org/140093005/diff/440001/chrome/renderer/autofill/page_click_tracker_browsertest.cc File chrome/renderer/autofill/page_click_tracker_browsertest.cc (right): ...
6 years, 9 months ago (2014-03-14 17:01:42 UTC) #14
Ilya Sherman
Thanks! LGTM with a final nit addressed: https://codereview.chromium.org/140093005/diff/440001/components/autofill/content/renderer/form_autofill_util.cc File components/autofill/content/renderer/form_autofill_util.cc (right): https://codereview.chromium.org/140093005/diff/440001/components/autofill/content/renderer/form_autofill_util.cc#newcode510 components/autofill/content/renderer/form_autofill_util.cc:510: ((IsAutofillableInputElement(input_element) || ...
6 years, 9 months ago (2014-03-14 21:42:54 UTC) #15
ziran.sun
https://codereview.chromium.org/140093005/diff/460001/components/autofill/content/renderer/autofill_agent.cc File components/autofill/content/renderer/autofill_agent.cc (right): https://codereview.chromium.org/140093005/diff/460001/components/autofill/content/renderer/autofill_agent.cc#newcode576 components/autofill/content/renderer/autofill_agent.cc:576: element.autoComplete() ? REQUIRE_AUTOCOMPLETE : REQUIRE_NONE; On 2014/03/14 21:42:55, Ilya ...
6 years, 9 months ago (2014-03-17 11:36:24 UTC) #16
ziran.sun
The CQ bit was checked by ziran.sun@samsung.com
6 years, 9 months ago (2014-03-17 11:37:58 UTC) #17
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/ziran.sun@samsung.com/140093005/480001
6 years, 9 months ago (2014-03-17 11:38:02 UTC) #18
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 9 months ago (2014-03-17 13:03:36 UTC) #19
commit-bot: I haz the power
Retried try job too often on win_rel for step(s) browser_tests http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=win_rel&number=282700
6 years, 9 months ago (2014-03-17 13:03:36 UTC) #20
ziran.sun
The CQ bit was checked by ziran.sun@samsung.com
6 years, 9 months ago (2014-03-17 14:50:46 UTC) #21
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/ziran.sun@samsung.com/140093005/500001
6 years, 9 months ago (2014-03-17 14:51:07 UTC) #22
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 9 months ago (2014-03-17 17:59:00 UTC) #23
commit-bot: I haz the power
Commit queue rejected this change because the description was changed between the time the change ...
6 years, 9 months ago (2014-03-17 17:59:01 UTC) #24
ziran.sun
The CQ bit was checked by ziran.sun@samsung.com
6 years, 9 months ago (2014-03-17 19:07:23 UTC) #25
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/ziran.sun@samsung.com/140093005/500001
6 years, 9 months ago (2014-03-17 19:08:17 UTC) #26
commit-bot: I haz the power
Change committed as 257476
6 years, 9 months ago (2014-03-17 19:09:10 UTC) #27
Ilya Sherman
6 years, 9 months ago (2014-03-18 18:53:56 UTC) #28
Message was sent while issue was closed.
https://codereview.chromium.org/140093005/diff/500001/components/autofill/con...
File components/autofill/content/renderer/autofill_agent.cc (right):

https://codereview.chromium.org/140093005/diff/500001/components/autofill/con...
components/autofill/content/renderer/autofill_agent.cc:290: if
(!IsAutofillableInputElement(input_element) &&
Here too.

https://codereview.chromium.org/140093005/diff/500001/components/autofill/con...
components/autofill/content/renderer/autofill_agent.cc:319:
DCHECK(IsAutofillableInputElement(toWebInputElement(&element)) ||
This DCHECK is incorrect, as the element might not be an autofillable input
element.  I think this should be

DCHECK(toWebInputElement(&element) || IsTextAreaElement(element));

https://codereview.chromium.org/140093005/diff/500001/components/autofill/con...
components/autofill/content/renderer/autofill_agent.cc:346: if
(IsAutofillableInputElement(input_element)) {
This should just be if (input_element)

https://codereview.chromium.org/140093005/diff/500001/components/autofill/con...
components/autofill/content/renderer/autofill_agent.cc:390:
DCHECK(IsAutofillableInputElement(input_element));
This should just be DCHECK(input_element);

https://codereview.chromium.org/140093005/diff/500001/components/autofill/con...
components/autofill/content/renderer/autofill_agent.cc:466:
DCHECK(IsAutofillableInputElement(input_element));
Here too.

https://codereview.chromium.org/140093005/diff/500001/components/autofill/con...
components/autofill/content/renderer/autofill_agent.cc:473:
DCHECK(IsAutofillableInputElement(input_element));
Here too.

https://codereview.chromium.org/140093005/diff/500001/components/autofill/con...
components/autofill/content/renderer/autofill_agent.cc:517: if
(IsAutofillableInputElement(input_element)) {
This should be a check for if (input_element), not if
(IsAutofillableInputElement(input_element))

https://codereview.chromium.org/140093005/diff/500001/components/autofill/con...
components/autofill/content/renderer/autofill_agent.cc:543: if
(IsAutofillableInputElement(input_element) &&
This should be a check for just if (input_element)

https://codereview.chromium.org/140093005/diff/500001/components/autofill/con...
components/autofill/content/renderer/autofill_agent.cc:571:
DCHECK(IsAutofillableInputElement(toWebInputElement(&element)) ||
Here too

https://codereview.chromium.org/140093005/diff/500001/components/autofill/con...
components/autofill/content/renderer/autofill_agent.cc:601: if
(IsAutofillableInputElement(input_element)) {
Here too.

Powered by Google App Engine
This is Rietveld 408576698