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

Issue 2949533002: Test for the autofill login for the form without username field.

Created:
3 years, 6 months ago by melandory
Modified:
3 years, 6 months ago
Reviewers:
vabr (Chromium)
CC:
chromium-reviews, vabr+watchlistpasswordmanager_chromium.org, rouslan+autofill_chromium.org, rogerm+autofillwatch_chromium.org, sebsg+autofillwatch_chromium.org, mathp+autofillwatch_chromium.org, vabr+watchlistautofill_chromium.org, estade+watch_chromium.org, gcasto+watchlist_chromium.org
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

Test for the autofill login for the form without username field. This CL adds the test case to the autofill agent browser tests. The test case checks the autofill logic on the form without username. It's expected that if the user has saved credential with the empty username, then the password is filled to the form without username. BUG=543435

Patch Set 1 #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+14 lines, -0 lines) Patch
M chrome/renderer/autofill/password_autofill_agent_browsertest.cc View 1 chunk +14 lines, -0 lines 1 comment Download

Messages

Total messages: 7 (5 generated)
vabr (Chromium)
The spirit LGTM, let's fix the details. (Apologies for unsolicited review, I followed the link ...
3 years, 6 months ago (2017-06-19 13:03:36 UTC) #6
melandory
3 years, 6 months ago (2017-06-20 13:04:56 UTC) #7
On 2017/06/19 13:03:36, vabr (Chromium) wrote:
> The spirit LGTM, let's fix the details.
> 
> (Apologies for unsolicited review, I followed the link from the other CL and
> only now noticed that you did not send out this one yet. If the comment below
> does not make sense, then please just ignore it. :))
Yeah, it was just FIY ;)  I can't make the test work for now, I'll let you know
once it's ready.
> 
> Cheers,
> Vaclav
> 
>
https://codereview.chromium.org/2949533002/diff/1/chrome/renderer/autofill/pa...
> File chrome/renderer/autofill/password_autofill_agent_browsertest.cc (right):
> 
>
https://codereview.chromium.org/2949533002/diff/1/chrome/renderer/autofill/pa...
> chrome/renderer/autofill/password_autofill_agent_browsertest.cc:738:
> SimulateOnFillPasswordForm(fill_data_);
> Instead of fill_data_, you might need to make a copy and clear its
> username_field. Also, password_for_empty_username_ does not seem defined, so
> probably just use the password_field.value from the modified FillData.

Powered by Google App Engine
This is Rietveld 408576698