[epiphany] web-extension: No longer need to set form values manually



commit f374b00bb0ce0f2803119d8d4903de7636481355
Author: Michael Catanzaro <mcatanzaro gnome org>
Date:   Wed Oct 26 16:32:05 2016 -0500

    web-extension: No longer need to set form values manually
    
    Thanks to Sergio for pointing this out.

 embed/web-extension/ephy-web-extension.c |    2 --
 1 files changed, 0 insertions(+), 2 deletions(-)
---
diff --git a/embed/web-extension/ephy-web-extension.c b/embed/web-extension/ephy-web-extension.c
index a6fe313..81e19b2 100644
--- a/embed/web-extension/ephy-web-extension.c
+++ b/embed/web-extension/ephy-web-extension.c
@@ -390,11 +390,9 @@ fill_form_cb (const char *username,
 
   LOG ("Found: user %s pass (hidden)", username_node ? username : "(none)");
   if (username_node) {
-    g_object_set (username_node, "value", username, NULL);
     webkit_dom_html_input_element_set_auto_filled (username_node, TRUE);
     webkit_dom_html_input_element_set_editing_value (username_node, username);
   }
-  g_object_set (password_node, "value", password, NULL);
   webkit_dom_html_input_element_set_auto_filled (password_node, TRUE);
   webkit_dom_html_input_element_set_editing_value (password_node, password);
 }


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]