[epiphany/gnome-3-4] Also consider email inputs when looking for user/password forms



commit 0a82c14c21cea3c6e1ce64fe291832b1f7e4769c
Author: Gustavo Noronha Silva <gns gnome org>
Date:   Mon Apr 9 00:10:51 2012 -0300

    Also consider email inputs when looking for user/password forms
    
    Some sites use email addresses for login purposes, and already adopted the
    email input type for the login forms. This means we should also consider email
    inputs as a possible username entry.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=666326

 embed/ephy-web-view.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/embed/ephy-web-view.c b/embed/ephy-web-view.c
index 5a5293a..7b213b4 100644
--- a/embed/ephy-web-view.c
+++ b/embed/ephy-web-view.c
@@ -635,7 +635,7 @@ find_username_and_password_elements (WebKitDOMNode *form_node,
 
       g_object_get (element, "type", &element_type, NULL);
 
-      if (g_str_equal ("text", element_type)) {
+      if (g_str_equal ("text", element_type) || g_str_equal ("email", element_type)) {
         /* We found more than one inputs of type text; we won't be
          * saving here */
         if (*username_node) {



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]