diff options
author | Gustavo Noronha Silva <gns@gnome.org> | 2012-04-09 11:10:51 +0800 |
---|---|---|
committer | Gustavo Noronha Silva <gns@gnome.org> | 2012-04-21 06:49:35 +0800 |
commit | f9e00946d51a745f392ba88bf879e77bb157e663 (patch) | |
tree | 7f5b26d368669b7c36be646790b7f952e7cd4231 /embed | |
parent | 4435b6197650a8ce8e9ade06f8835e9ef140b425 (diff) | |
download | gsoc2013-epiphany-f9e00946d51a745f392ba88bf879e77bb157e663.tar gsoc2013-epiphany-f9e00946d51a745f392ba88bf879e77bb157e663.tar.gz gsoc2013-epiphany-f9e00946d51a745f392ba88bf879e77bb157e663.tar.bz2 gsoc2013-epiphany-f9e00946d51a745f392ba88bf879e77bb157e663.tar.lz gsoc2013-epiphany-f9e00946d51a745f392ba88bf879e77bb157e663.tar.xz gsoc2013-epiphany-f9e00946d51a745f392ba88bf879e77bb157e663.tar.zst gsoc2013-epiphany-f9e00946d51a745f392ba88bf879e77bb157e663.zip |
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
Diffstat (limited to 'embed')
-rw-r--r-- | 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 a6f30161c..038f8cec5 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) { |