aboutsummaryrefslogtreecommitdiffstats
path: root/embed/ephy-web-view.c
diff options
context:
space:
mode:
authorDiego Escalante Urrelo <descalante@igalia.com>2010-03-08 08:28:37 +0800
committerDiego Escalante Urrelo <descalante@igalia.com>2010-03-09 23:36:31 +0800
commit34225b960b566b75a401a7e279978da8090d75db (patch)
treea9a111989e1952479875f36a3ba2a70fc4a04288 /embed/ephy-web-view.c
parentc825037c4440837ed53a98ef7d707ce567234a5a (diff)
downloadgsoc2013-epiphany-34225b960b566b75a401a7e279978da8090d75db.tar
gsoc2013-epiphany-34225b960b566b75a401a7e279978da8090d75db.tar.gz
gsoc2013-epiphany-34225b960b566b75a401a7e279978da8090d75db.tar.bz2
gsoc2013-epiphany-34225b960b566b75a401a7e279978da8090d75db.tar.lz
gsoc2013-epiphany-34225b960b566b75a401a7e279978da8090d75db.tar.xz
gsoc2013-epiphany-34225b960b566b75a401a7e279978da8090d75db.tar.zst
gsoc2013-epiphany-34225b960b566b75a401a7e279978da8090d75db.zip
Inspect type property when hooking to login forms
Some sites don't use a sane type attribute in their input tags. So for example you get input tags without a type, or with multiple types. Offenders are bugzillas and ohloh.net. Luckily, WebKit inferres correctly what the input should be so instead of relying on what the HTML says we rely on what WebKit thinks. Bug #608740
Diffstat (limited to 'embed/ephy-web-view.c')
-rw-r--r--embed/ephy-web-view.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/embed/ephy-web-view.c b/embed/ephy-web-view.c
index 398db35d8..cbb70c930 100644
--- a/embed/ephy-web-view.c
+++ b/embed/ephy-web-view.c
@@ -799,7 +799,8 @@ find_username_and_password_elements (JSContextRef js_context,
js_object = JSValueToObject (js_context, (JSValueRef)iter->data, NULL);
- type = js_get_element_attribute (js_context, js_object, "type");
+ type = js_get_element_property (js_context, js_object, "type");
+
if (!type)
continue;