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

Issue 2808036: AutoFill fills only clicked field when form was filled prior. (Closed)

Created:
10 years, 5 months ago by dhollowa
Modified:
9 years, 7 months ago
Reviewers:
James Hawkins
CC:
chromium-reviews, Paweł Hajdan Jr., darin-cc_chromium.org, brettw-cc_chromium.org
Visibility:
Public.

Description

AutoFill fills only clicked field when form was filled prior. These changes make it so that individual fields are filled with the value selected from the input element popup menu. AutoFill profile data is not queried in this case. BUG=44618, 47917 TEST=RenderViewTest.SendForms, RenderViewTest.FillFormElement Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=51200

Patch Set 1 #

Total comments: 2

Patch Set 2 : Addressing review comments. #

Total comments: 9

Patch Set 3 : Addressing review comments. #

Patch Set 4 : Adding comment. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+70 lines, -0 lines) Patch
M chrome/renderer/render_view.h View 1 chunk +1 line, -0 lines 0 comments Download
M chrome/renderer/render_view.cc View 1 2 3 1 chunk +7 lines, -0 lines 0 comments Download
M chrome/renderer/render_view_unittest.cc View 1 2 1 chunk +62 lines, -0 lines 0 comments Download

Messages

Total messages: 7 (0 generated)
dhollowa
10 years, 5 months ago (2010-06-29 20:54:10 UTC) #1
dhollowa
10 years, 5 months ago (2010-06-29 20:58:48 UTC) #2
James Hawkins
http://codereview.chromium.org/2808036/diff/1/2 File chrome/renderer/render_view.cc (right): http://codereview.chromium.org/2808036/diff/1/2#newcode2114 chrome/renderer/render_view.cc:2114: } else if (label.isEmpty()) { This should be based ...
10 years, 5 months ago (2010-06-29 21:04:46 UTC) #3
dhollowa
http://codereview.chromium.org/2808036/diff/1/2 File chrome/renderer/render_view.cc (right): http://codereview.chromium.org/2808036/diff/1/2#newcode2114 chrome/renderer/render_view.cc:2114: } else if (label.isEmpty()) { On 2010/06/29 21:04:46, James ...
10 years, 5 months ago (2010-06-29 22:19:51 UTC) #4
James Hawkins
http://codereview.chromium.org/2808036/diff/6001/7001 File chrome/renderer/render_view.cc (right): http://codereview.chromium.org/2808036/diff/6001/7001#newcode2116 chrome/renderer/render_view.cc:2116: WebInputElement element = node.toConst<WebInputElement>(); You use toConst, but aren't ...
10 years, 5 months ago (2010-06-29 22:23:19 UTC) #5
dhollowa
http://codereview.chromium.org/2808036/diff/6001/7001 File chrome/renderer/render_view.cc (right): http://codereview.chromium.org/2808036/diff/6001/7001#newcode2116 chrome/renderer/render_view.cc:2116: WebInputElement element = node.toConst<WebInputElement>(); On 2010/06/29 22:23:19, James Hawkins ...
10 years, 5 months ago (2010-06-29 22:43:54 UTC) #6
James Hawkins
10 years, 5 months ago (2010-06-29 22:46:31 UTC) #7
LGTM with added comment.

http://codereview.chromium.org/2808036/diff/6001/7001
File chrome/renderer/render_view.cc (right):

http://codereview.chromium.org/2808036/diff/6001/7001#newcode2116
chrome/renderer/render_view.cc:2116: WebInputElement element =
node.toConst<WebInputElement>();
On 2010/06/29 22:43:54, dhollowa wrote:
> On 2010/06/29 22:23:19, James Hawkins wrote:
> > You use toConst, but aren't using a const element. You want node.to<...>();
> 
> node.to<...>() doesn't cast away const'ness.

Gotcha. Please add a comment for this.

Powered by Google App Engine
This is Rietveld 408576698