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

Issue 2750323003: [Password Manager] Replace WebInputElement.setValue with WebInputElement.setAutofillValue (Closed)

Created:
3 years, 9 months ago by kolos1
Modified:
3 years, 9 months ago
Reviewers:
vabr (Chromium), sebsg
CC:
chromium-reviews, mlamouri+watch-content_chromium.org, jam, vabr+watchlistpasswordmanager_chromium.org, rouslan+autofill_chromium.org, rogerm+autofillwatch_chromium.org, sebsg+autofillwatch_chromium.org, browser-components-watch_chromium.org, mathp+autofillwatch_chromium.org, darin-cc_chromium.org, vabr+watchlistautofill_chromium.org, estade+watch_chromium.org, gcasto+watchlist_chromium.org
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

[Password Manager] Replace WebInputElement.setValue(element, true /* send events*/) with WebInputElement.setAutofillValue Sometimes sites doesn't recognize that the password manager changed field values. setAutofillValue sends more events than setValue. This CL (https://codereview.chromium.org/1955963002/) makes migration for autofill code. BUG=676267, 501614 Review-Url: https://codereview.chromium.org/2750323003 Cr-Commit-Position: refs/heads/master@{#458459} Committed: https://chromium.googlesource.com/chromium/src/+/4a42d386112ff65fe17baa0c633e5ccc44989aa5

Patch Set 1 #

Patch Set 2 : #

Total comments: 6

Patch Set 3 : Typo in comment #

Patch Set 4 : Fixed Win tests #

Total comments: 2

Patch Set 5 : Fixed a comment #

Unified diffs Side-by-side diffs Delta from patch set Stats (+106 lines, -97 lines) Patch
M chrome/renderer/autofill/password_autofill_agent_browsertest.cc View 1 2 3 4 5 chunks +36 lines, -54 lines 0 comments Download
M chrome/renderer/autofill/password_generation_agent_browsertest.cc View 1 2 3 3 chunks +14 lines, -27 lines 0 comments Download
M chrome/renderer/autofill/password_generation_test_utils.h View 1 2 3 2 chunks +8 lines, -0 lines 0 comments Download
M chrome/renderer/autofill/password_generation_test_utils.cc View 1 2 3 3 chunks +34 lines, -2 lines 0 comments Download
M components/autofill/content/renderer/form_cache.cc View 3 chunks +4 lines, -4 lines 0 comments Download
M components/autofill/content/renderer/password_autofill_agent.cc View 1 2 3 4 chunks +6 lines, -6 lines 0 comments Download
M components/autofill/content/renderer/password_generation_agent.cc View 2 chunks +4 lines, -4 lines 0 comments Download

Messages

Total messages: 70 (61 generated)
kolos1
sebsg@: Please review a change in form_cache.cc. Seems setValue should be replaced with setAutofillValue vabr@: ...
3 years, 9 months ago (2017-03-17 11:51:40 UTC) #6
vabr (Chromium)
Thanks Maxim for the patch (and Seb for the pointer to the autofill code). This ...
3 years, 9 months ago (2017-03-17 12:01:07 UTC) #7
kolos1
Thanks for review Vaclav! https://codereview.chromium.org/2750323003/diff/20001/chrome/renderer/autofill/password_autofill_agent_browsertest.cc File chrome/renderer/autofill/password_autofill_agent_browsertest.cc (right): https://codereview.chromium.org/2750323003/diff/20001/chrome/renderer/autofill/password_autofill_agent_browsertest.cc#newcode542 chrome/renderer/autofill/password_autofill_agent_browsertest.cc:542: void CheckIfEventsAreCalled(const std::vector<std::string> checkers, On ...
3 years, 9 months ago (2017-03-17 12:47:36 UTC) #8
kolos1
Friendly ping. There was a tricky bug in my implementation. base::StringPrintF failed only on Windows ...
3 years, 9 months ago (2017-03-21 05:25:16 UTC) #57
vabr (Chromium)
Still LGTM. Cheers, Vaclav https://codereview.chromium.org/2750323003/diff/560001/chrome/renderer/autofill/password_autofill_agent_browsertest.cc File chrome/renderer/autofill/password_autofill_agent_browsertest.cc (right): https://codereview.chromium.org/2750323003/diff/560001/chrome/renderer/autofill/password_autofill_agent_browsertest.cc#newcode940 chrome/renderer/autofill/password_autofill_agent_browsertest.cc:940: // A JavaScript events should ...
3 years, 9 months ago (2017-03-21 07:57:30 UTC) #58
kolos1
https://codereview.chromium.org/2750323003/diff/560001/chrome/renderer/autofill/password_autofill_agent_browsertest.cc File chrome/renderer/autofill/password_autofill_agent_browsertest.cc (right): https://codereview.chromium.org/2750323003/diff/560001/chrome/renderer/autofill/password_autofill_agent_browsertest.cc#newcode940 chrome/renderer/autofill/password_autofill_agent_browsertest.cc:940: // A JavaScript events should have been triggered for ...
3 years, 9 months ago (2017-03-21 08:29:21 UTC) #59
sebsg
Sweet! LGTM!
3 years, 9 months ago (2017-03-21 13:26:02 UTC) #60
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2750323003/580001
3 years, 9 months ago (2017-03-21 17:25:27 UTC) #67
commit-bot: I haz the power
3 years, 9 months ago (2017-03-21 17:38:46 UTC) #70
Message was sent while issue was closed.
Committed patchset #5 (id:580001) as
https://chromium.googlesource.com/chromium/src/+/4a42d386112ff65fe17baa0c633e...

Powered by Google App Engine
This is Rietveld 408576698