From 78b70aa84bb94f5097d40ffbb461aefcbbaeb979 Mon Sep 17 00:00:00 2001 From: Carlos Garcia Campos Date: Sat, 9 Mar 2013 13:04:02 +0100 Subject: Move find_username_and_password_elements to ephy-web-dom-utils Renamed as ephy_web_dom_utils_find_form_auth_elements(). Also fixed possible memory leaks in case of multiple auth input fields found. It now returns a boolean indicating whther form auth elements were found. --- lib/ephy-web-dom-utils.h | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) (limited to 'lib/ephy-web-dom-utils.h') diff --git a/lib/ephy-web-dom-utils.h b/lib/ephy-web-dom-utils.h index a998d4a17..aa052d26e 100644 --- a/lib/ephy-web-dom-utils.h +++ b/lib/ephy-web-dom-utils.h @@ -24,12 +24,7 @@ #ifndef EPHY_WEB_DOM_UTILS_H #define EPHY_WEB_DOM_UTILS_H -#ifdef HAVE_WEBKIT2 -#include -#include -#else -#include -#endif +#include G_BEGIN_DECLS @@ -42,6 +37,10 @@ gboolean ephy_web_dom_utils_get_best_icon (WebKitDOMDocument *document, char **uri_out, char **color_out); +gboolean ephy_web_dom_utils_find_form_auth_elements (WebKitDOMHTMLFormElement *form, + WebKitDOMNode **username, + WebKitDOMNode **password); + G_END_DECLS #endif -- cgit v1.2.3