From 34225b960b566b75a401a7e279978da8090d75db Mon Sep 17 00:00:00 2001 From: Diego Escalante Urrelo Date: Sun, 7 Mar 2010 19:28:37 -0500 Subject: 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 --- embed/ephy-web-view.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'embed') 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; -- cgit v1.2.3