[epiphany] ephy-dom-utils: Remember some more passwords
- From: Bastien Nocera <hadess src gnome org>
- To: commits-list gnome org
- Cc: 
- Subject: [epiphany] ephy-dom-utils: Remember some more passwords
- Date: Fri, 24 Jul 2015 10:58:16 +0000 (UTC)
commit 4ffd3902c3316b0d2f65fd4abede852eb995108c
Author: Bastien Nocera <hadess hadess net>
Date:   Sat Oct 18 20:58:05 2014 +0200
    ephy-dom-utils: Remember some more passwords
    
    Remember passwords for the French tax office:
    https://cfspart.impots.gouv.fr/LoginMDP
    
    The identifier's entry type is set as "tel" so that only digits can
    be input on browsers that support those hints. Make sure that Epiphany
    knows that "telephone numbers" can be used as identifiers, in addition
    to free-form text and emails.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=750024
 lib/ephy-web-dom-utils.c |    4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)
---
diff --git a/lib/ephy-web-dom-utils.c b/lib/ephy-web-dom-utils.c
index 6c7769c..7db061a 100644
--- a/lib/ephy-web-dom-utils.c
+++ b/lib/ephy-web-dom-utils.c
@@ -375,7 +375,9 @@ ephy_web_dom_utils_find_form_auth_elements (WebKitDOMHTMLFormElement *form,
 
     g_object_get (element, "type", &element_type, "name", &element_name, NULL);
 
-    if (g_strcmp0 (element_type, "text") == 0 || g_strcmp0 (element_type, "email") == 0) {
+    if (g_strcmp0 (element_type, "text") == 0 ||
+        g_strcmp0 (element_type, "email") == 0 ||
+        g_strcmp0 (element_type, "tel") == 0) {
       /* We found more than one inputs of type text; we won't be saving here. */
       if (username_node) {
         g_free (element_type);
[
Date Prev][
Date Next]   [
Thread Prev][
Thread Next]   
[
Thread Index]
[
Date Index]
[
Author Index]