diff options
author | Xan Lopez <xan@gnome.org> | 2009-12-16 19:36:40 +0800 |
---|---|---|
committer | Xan Lopez <xan@gnome.org> | 2009-12-16 19:36:40 +0800 |
commit | dcbca48831c592e33e0041f7fb6d458640983cea (patch) | |
tree | 450476792f3970d1d3b52b0a87d1a34dd3135c28 /embed/ephy-web-view.c | |
parent | 42e33a560184e66f243a20453e04463976d6f314 (diff) | |
download | gsoc2013-epiphany-dcbca48831c592e33e0041f7fb6d458640983cea.tar.gz gsoc2013-epiphany-dcbca48831c592e33e0041f7fb6d458640983cea.tar.zst gsoc2013-epiphany-dcbca48831c592e33e0041f7fb6d458640983cea.zip |
ephy-web-view: do not auto-fill passwords when using a private profile
Diffstat (limited to 'embed/ephy-web-view.c')
-rw-r--r-- | 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 a0a7ac332..a4dceb8f5 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)); } } |