Commit 27650b11 authored by John Z Wu's avatar John Z Wu Committed by Commit Bot

Change password detection in CWVAutofillForm.

Bug: 905546
Change-Id: I5063a1827c94da4a8ef8765d35b090608579d648
Reviewed-on: https://chromium-review.googlesource.com/c/1340587Reviewed-by: default avatarHiroshi Ichikawa <ichikawa@chromium.org>
Commit-Queue: John Wu <jzw@chromium.org>
Cr-Commit-Position: refs/heads/master@{#609166}
parent 79ac6a81
......@@ -27,7 +27,11 @@
if (formTypes.find(autofill::CREDIT_CARD_FORM) != formTypes.end()) {
_type |= CWVAutofillFormTypeCreditCards;
}
if (formTypes.find(autofill::PASSWORD_FORM) != formTypes.end()) {
// Underlying autofill code does not parse password fields because it does
// not consider password forms as autofillable. In other words, |formTypes|
// will never contain PASSWORD_FORM. Luckily, it already provides a function
// to check if it has any password fields.
if (formStructure.has_password_field()) {
_type |= CWVAutofillFormTypePasswords;
}
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment