[epiphany] ephy-web-view: do not auto-fill passwords when using a private profile



commit dcbca48831c592e33e0041f7fb6d458640983cea
Author: Xan Lopez <xan gnome org>
Date:   Wed Dec 16 12:36:40 2009 +0100

    ephy-web-view: do not auto-fill passwords when using a private profile

 embed/ephy-web-view.c |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/embed/ephy-web-view.c b/embed/ephy-web-view.c
index a0a7ac3..a4dceb8 100644
--- a/embed/ephy-web-view.c
+++ b/embed/ephy-web-view.c
@@ -1650,10 +1650,10 @@ load_status_cb (WebKitWebView *web_view,
   WebKitLoadStatus status = webkit_web_view_get_load_status (web_view);
 
   if (status == WEBKIT_LOAD_FINISHED) {
-    if (!eel_gconf_get_boolean (CONF_PRIVACY_REMEMBER_PASSWORDS))
-      return;
+    if (ephy_has_private_profile () == FALSE &&
+        eel_gconf_get_boolean (CONF_PRIVACY_REMEMBER_PASSWORDS))
+      _ephy_web_view_hook_into_forms (EPHY_WEB_VIEW (web_view));
 
-    _ephy_web_view_hook_into_forms (EPHY_WEB_VIEW (web_view));
     _ephy_web_view_hook_into_links (EPHY_WEB_VIEW (web_view));
   }
 }



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