epiphany r8814 - trunk/embed/webkit



Author: xan
Date: Thu Feb 26 15:13:09 2009
New Revision: 8814
URL: http://svn.gnome.org/viewvc/epiphany?rev=8814&view=rev

Log:
webkit-embed-single: use SoupProxyResolverGNOME to use GNOME proxy settings.

Modified:
   trunk/embed/webkit/webkit-embed-single.c

Modified: trunk/embed/webkit/webkit-embed-single.c
==============================================================================
--- trunk/embed/webkit/webkit-embed-single.c	(original)
+++ trunk/embed/webkit/webkit-embed-single.c	Thu Feb 26 15:13:09 2009
@@ -205,14 +205,19 @@
 
   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;
 }
 



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