diff options
author | rafa_99 <raroma09@gmail.com> | 2021-09-25 21:47:35 +0100 |
---|---|---|
committer | rafa_99 <raroma09@gmail.com> | 2021-09-25 21:47:35 +0100 |
commit | 9736f15a4c65d82e9f9bfbecac2d2d4e548425c3 (patch) | |
tree | bb5b5d4e076ad5b9965a56a75777701f50e476bf /src/main.c | |
parent | 23427f3348ab6fd50661669637d7e3761e9af095 (diff) |
Updated Cookies Settings
Diffstat (limited to 'src/main.c')
-rw-r--r-- | src/main.c | 12 |
1 files changed, 10 insertions, 2 deletions
@@ -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 |