Index: components/autofill/content/renderer/password_form_conversion_utils.cc |
diff --git a/components/autofill/content/renderer/password_form_conversion_utils.cc b/components/autofill/content/renderer/password_form_conversion_utils.cc |
index dc87799d0c887b0be691584de12d78b1ac649477..e600fcd2980726378412d5c57c2d329493837436 100644 |
--- a/components/autofill/content/renderer/password_form_conversion_utils.cc |
+++ b/components/autofill/content/renderer/password_form_conversion_utils.cc |
@@ -364,6 +364,7 @@ bool GetPasswordForm(const SyntheticForm& form, |
// was made readonly by JavaScript before submission. We can do this by |
// checking whether password element was updated not from JavaScript. |
if (input_element->isPasswordField() && |
+ form_util::IsWebNodeVisible(*input_element) && |
(!input_element->isReadOnly() || |
(nonscript_modified_values && |
nonscript_modified_values->find(*input_element) != |