summaryrefslogtreecommitdiff
path: root/src/main.c
diff options
context:
space:
mode:
authorrafa_99 <raroma09@gmail.com>2021-09-25 21:47:35 +0100
committerrafa_99 <raroma09@gmail.com>2021-09-25 21:47:35 +0100
commit9736f15a4c65d82e9f9bfbecac2d2d4e548425c3 (patch)
treebb5b5d4e076ad5b9965a56a75777701f50e476bf /src/main.c
parent23427f3348ab6fd50661669637d7e3761e9af095 (diff)
Updated Cookies Settings
Diffstat (limited to 'src/main.c')
-rw-r--r--src/main.c12
1 files changed, 10 insertions, 2 deletions
diff --git a/src/main.c b/src/main.c
index 7eedee9..cdb6dd6 100644
--- a/src/main.c
+++ b/src/main.c
@@ -1845,8 +1845,16 @@ static void neovimb_setup(void)
g_free(dataPath);
- // ToDo, Never cookies -- manager = webkit_website_data_manager_new_ephemeral();
- WebKitWebsiteDataManager *manager = webkit_website_data_manager_new("base-data-directory", util_get_data_dir(), "base-cache-directory", util_get_cache_dir(), NULL);
+ WebKitWebsiteDataManager *manager = NULL;
+ if ( strcmp(SETTING_COOKIE_ACCEPT, "never") == 0 )
+ {
+ manager = webkit_website_data_manager_new_ephemeral();
+ }
+ else
+ {
+ manager = webkit_website_data_manager_new("base-data-directory", util_get_data_dir(), "base-cache-directory", util_get_cache_dir(), NULL);
+ }
+
vb.webcontext = webkit_web_context_new_with_website_data_manager(manager);
manager = webkit_web_context_get_website_data_manager(vb.webcontext);
/* Use seperate rendering processed for the webview of the clients in the