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

Issue 2411333004: Make HasAutocompleteAttributeValue handle multi-valued strings (Closed)

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

Description

Make HasAutocompleteAttributeValue handle multi-valued strings This change addresses a bug where HasAutocompleteAttributeValue assumes that the attribute always only has one value. In reality the attribute can consist of multiple values separated by whitespace. A similar bug was already fixed in FormStructure::ParseFieldTypesFromAutocompleteAttributes. This change fixes the bug by extracting the corresponding logic into a LowercaseAndTokenizeAttributeString method, residing in components/autofill/core/common/autofill_util. Both the implementation in password_form_conversion_utils and autofill_util now reference this method. Furthermore a corresponding unit test was added to autofill_util_unittest.cc BUG=655157 Committed: https://crrev.com/810f2c7d12a60a8ce27bc4e5ed8561d1d1c749bb Cr-Commit-Position: refs/heads/master@{#425025}

Patch Set 1 #

Total comments: 20

Patch Set 2 : Make HasAutocompleteAttributeValue handle multi-valued strings #

Unified diffs Side-by-side diffs Delta from patch set Stats (+59 lines, -17 lines) Patch
M components/autofill/content/renderer/password_form_conversion_utils.cc View 1 2 chunks +8 lines, -3 lines 0 comments Download
M components/autofill/core/browser/form_structure.cc View 1 2 chunks +6 lines, -13 lines 0 comments Download
M components/autofill/core/common/autofill_util.h View 1 2 chunks +9 lines, -0 lines 0 comments Download
M components/autofill/core/common/autofill_util.cc View 1 2 chunks +7 lines, -1 line 0 comments Download
M components/autofill/core/common/autofill_util_unittest.cc View 1 1 chunk +29 lines, -0 lines 0 comments Download

Messages

Total messages: 19 (12 generated)
jdoerrie
4 years, 2 months ago (2016-10-13 12:20:18 UTC) #2
vabr (Chromium)
LGTM with a few comments. Also, please do not forget to edit the issue description ...
4 years, 2 months ago (2016-10-13 12:49:31 UTC) #5
jdoerrie
https://codereview.chromium.org/2411333004/diff/1/components/autofill/content/renderer/password_form_conversion_utils.cc File components/autofill/content/renderer/password_form_conversion_utils.cc (right): https://codereview.chromium.org/2411333004/diff/1/components/autofill/content/renderer/password_form_conversion_utils.cc#newcode707 components/autofill/content/renderer/password_form_conversion_utils.cc:707: base::string16 autocomplete_attribute(element.getAttribute("autocomplete")); On 2016/10/13 12:49:31, vabr (Chromium) wrote: > ...
4 years, 2 months ago (2016-10-13 13:45:07 UTC) #8
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/2411333004/20001
4 years, 2 months ago (2016-10-13 13:47:39 UTC) #11
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/2411333004/20001
4 years, 2 months ago (2016-10-13 13:50:35 UTC) #15
commit-bot: I haz the power
Committed patchset #2 (id:20001)
4 years, 2 months ago (2016-10-13 14:34:19 UTC) #17
commit-bot: I haz the power
4 years, 2 months ago (2016-10-13 14:36:12 UTC) #19
Message was sent while issue was closed.
Patchset 2 (id:??) landed as
https://crrev.com/810f2c7d12a60a8ce27bc4e5ed8561d1d1c749bb
Cr-Commit-Position: refs/heads/master@{#425025}

Powered by Google App Engine
This is Rietveld 408576698