aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorXan Lopez <xan@src.gnome.org>2009-02-26 23:13:09 +0800
committerXan Lopez <xan@src.gnome.org>2009-02-26 23:13:09 +0800
commit01b36dd4aeebac60076b1e8d28dd1181129939bd (patch)
tree54d4c7b5f37c5e9eb2d78766632e22524a57b833
parent41b7f28a674d52637c63f4e0f55239120843ab29 (diff)
downloadgsoc2013-epiphany-01b36dd4aeebac60076b1e8d28dd1181129939bd.tar
gsoc2013-epiphany-01b36dd4aeebac60076b1e8d28dd1181129939bd.tar.gz
gsoc2013-epiphany-01b36dd4aeebac60076b1e8d28dd1181129939bd.tar.bz2
gsoc2013-epiphany-01b36dd4aeebac60076b1e8d28dd1181129939bd.tar.lz
gsoc2013-epiphany-01b36dd4aeebac60076b1e8d28dd1181129939bd.tar.xz
gsoc2013-epiphany-01b36dd4aeebac60076b1e8d28dd1181129939bd.tar.zst
gsoc2013-epiphany-01b36dd4aeebac60076b1e8d28dd1181129939bd.zip
webkit-embed-single: use SoupProxyResolverGNOME to use GNOME proxy settings.
svn path=/trunk/; revision=8814
-rw-r--r--embed/webkit/webkit-embed-single.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/embed/webkit/webkit-embed-single.c b/embed/webkit/webkit-embed-single.c
index 3adf76bf0..60e4c5a4d 100644
--- a/embed/webkit/webkit-embed-single.c
+++ b/embed/webkit/webkit-embed-single.c
@@ -205,14 +205,19 @@ impl_init (EphyEmbedSingle *esingle)
webkit_embed_prefs_init ();
+ session = webkit_get_default_session ();
+
+ /* Store cookies in moz-compatible SQLite format */
filename = g_build_filename (ephy_dot_dir (), "cookies.sqlite", NULL);
jar = soup_cookie_jar_sqlite_new (filename, FALSE);
g_free (filename);
- session = webkit_get_default_session ();
soup_session_add_feature (session, SOUP_SESSION_FEATURE(jar));
g_object_unref (jar);
+ /* Use GNOME proxy settings through libproxy */
+ soup_session_add_feature_by_type (session, SOUP_TYPE_PROXY_RESOLVER_GNOME);
+
return TRUE;
}