diff options
author | Xan Lopez <xan@gnome.org> | 2010-02-05 05:05:16 +0800 |
---|---|---|
committer | Xan Lopez <xan@gnome.org> | 2010-02-05 05:07:37 +0800 |
commit | 66053f00ec618994942aa8a4685376a792c26acc (patch) | |
tree | fb1641363918922669d0e9896383d60efdb41cee /embed/ephy-embed-single.c | |
parent | 3fd99f851981c9bf4fea17a65cb94353fc37511d (diff) | |
download | gsoc2013-epiphany-66053f00ec618994942aa8a4685376a792c26acc.tar.gz gsoc2013-epiphany-66053f00ec618994942aa8a4685376a792c26acc.tar.zst gsoc2013-epiphany-66053f00ec618994942aa8a4685376a792c26acc.zip |
Make SoupCookieJarAcceptPolicy match our cookie policies
Bug #607484
Diffstat (limited to 'embed/ephy-embed-single.c')
-rw-r--r-- | embed/ephy-embed-single.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/embed/ephy-embed-single.c b/embed/ephy-embed-single.c index f8e0319a9..44efecaed 100644 --- a/embed/ephy-embed-single.c +++ b/embed/ephy-embed-single.c @@ -23,6 +23,7 @@ #define LIBSOUP_I_HAVE_READ_BUG_594377_AND_KNOW_SOUP_PASSWORD_MANAGER_MIGHT_GO_AWAY #define NSPLUGINWRAPPER_SETUP "/usr/bin/mozilla-plugin-config" +#include "eel-gconf-extensions.h" #include "ephy-embed-single.h" #include "ephy-embed-prefs.h" #include "ephy-embed-type-builtins.h" @@ -470,6 +471,7 @@ ephy_embed_single_initialize (EphyEmbedSingle *single) SoupSession *session; SoupCookieJar *jar; char *filename; + char *cookie_policy; /* Initialise nspluginwrapper's plugins if available */ if (g_file_test (NSPLUGINWRAPPER_SETUP, G_FILE_TEST_EXISTS) != FALSE) @@ -483,6 +485,9 @@ ephy_embed_single_initialize (EphyEmbedSingle *single) filename = g_build_filename (ephy_dot_dir (), "cookies.sqlite", NULL); jar = soup_cookie_jar_sqlite_new (filename, FALSE); g_free (filename); + cookie_policy = eel_gconf_get_string (CONF_SECURITY_COOKIES_ACCEPT); + ephy_embed_prefs_set_cookie_jar_policy (jar, cookie_policy); + g_free (cookie_policy); soup_session_add_feature (session, SOUP_SESSION_FEATURE (jar)); g_object_unref (jar); |