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

Unified Diff: components/autofill/content/renderer/password_autofill_agent.cc

Issue 2583493003: Password Manager: skip non-text fields from consideration for filling. (Closed)
Patch Set: Created 4 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/test/data/password/ambiguous_password_form.html ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/autofill/content/renderer/password_autofill_agent.cc
diff --git a/components/autofill/content/renderer/password_autofill_agent.cc b/components/autofill/content/renderer/password_autofill_agent.cc
index 88f28df670b44d069a026b7111b6e7c0986851a1..5163c56b0c09820b7f9b2b12211618c4c385297f 100644
--- a/components/autofill/content/renderer/password_autofill_agent.cc
+++ b/components/autofill/content/renderer/password_autofill_agent.cc
@@ -177,7 +177,8 @@ bool FindFormInputElement(
// fields.
const blink::WebInputElement input_element =
control_element.toConst<blink::WebInputElement>();
- if (input_element.isPasswordField() != is_password_field)
+ if (!input_element.isTextField() ||
+ input_element.isPasswordField() != is_password_field)
continue;
// For change password form with ambiguous or empty names keep only the
« no previous file with comments | « chrome/test/data/password/ambiguous_password_form.html ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698