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

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

Issue 2769023003: [Password Manager] Check node visibility with isFocusable instead of hasNonEmptyLayoutSize (Closed)
Patch Set: Created 3 years, 9 months 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
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 e02d83dbb53d099739cbb77a85eb39c9b49addfa..4a90424045ec570cf8b752b04b2470aea645c48c 100644
--- a/components/autofill/content/renderer/password_form_conversion_utils.cc
+++ b/components/autofill/content/renderer/password_form_conversion_utils.cc
@@ -354,7 +354,7 @@ void FoundVisiblePasswordAndVisibleUsernameBeforePassword(
!input_element->isTextField())
continue;
- if (!form_util::IsWebNodeVisible(*input_element))
+ if (!form_util::IsWebElementVisible(*input_element))
continue;
if (input_element->isPasswordField()) {
@@ -425,7 +425,7 @@ bool GetPasswordForm(
if (!input_element || !input_element->isEnabled())
continue;
- bool element_is_invisible = !form_util::IsWebNodeVisible(*input_element);
+ bool element_is_invisible = !form_util::IsWebElementVisible(*input_element);
if (input_element->isTextField()) {
if (input_element->isPasswordField()) {
if (element_is_invisible && ignore_invisible_passwords)

Powered by Google App Engine
This is Rietveld 408576698