[Xfce4-commits] <midori:master> Enable rudimentary cookie storage with WebKit2

Christian Dywan noreply at xfce.org
Sun Apr 7 21:56:03 CEST 2013


Updating branch refs/heads/master
         to a97bf2ff3111795cb1e49787197e517a26af769f (commit)
       from 3ff0a33bc1d4a2abfec7f7e4f90eb39aa4384eb8 (commit)

commit a97bf2ff3111795cb1e49787197e517a26af769f
Author: Christian Dywan <christian at twotoasts.de>
Date:   Sun Apr 7 21:54:36 2013 +0200

    Enable rudimentary cookie storage with WebKit2

 katze/midori-paths.vala |    5 +++++
 1 files changed, 5 insertions(+), 0 deletions(-)

diff --git a/katze/midori-paths.vala b/katze/midori-paths.vala
index 24b0e0a..2fbf64d 100644
--- a/katze/midori-paths.vala
+++ b/katze/midori-paths.vala
@@ -135,6 +135,11 @@ namespace Midori {
                 WebKit.WebContext.get_default ().set_disk_cache_directory (
                     Path.build_path (Path.DIR_SEPARATOR_S, cache_dir, "web"));
 #endif
+#if HAVE_WEBKIT2
+                var cookie_manager = WebKit.WebContext.get_default ().get_cookie_manager ();
+                cookie_manager.set_persistent_storage (Path.build_filename (config, "cookies.db"),
+                    WebKit.CookiePersistentStorage.SQLITE);
+#endif
                 tmp_dir = get_runtime_dir ();
             }
 #if HAVE_WEBKIT_1_3_13


More information about the Xfce4-commits mailing list