commit 5c0c642e2b38ef18e4c7e915c54daeb9078d002e
parent 4afaaf69a25e4bdfb3aca826fb8adce996a4203e
Author: Kyle Milz <kmilz@ucalgary.ca>
Date: Fri, 5 Oct 2012 21:08:37 -0600
enable cookies with the ewebkit2 api
also don't accept third party cookies by default.
Diffstat:
1 file changed, 5 insertions(+), 2 deletions(-)
diff --git a/src/main.c b/src/main.c
@@ -253,8 +253,11 @@ setup_config(App_Data *ad, int argc, char **argv)
dirlen++;
eina_strlcpy(basename, "cookies.txt", sizeof(path) - dirlen);
- // ewk_cookies_file_set(path);
- // ewk_cookies_policy_set(EWK_COOKIE_JAR_ACCEPT_NO_THIRD_PARTY);
+ printf("cookie path = %s\n", path);
+ ewk_cookie_manager_persistent_storage_set(ad->cookie_manager, path,
+ EWK_COOKIE_PERSISTENT_STORAGE_TEXT);
+ ewk_cookie_manager_accept_policy_set(ad->cookie_manager,
+ EWK_COOKIE_ACCEPT_POLICY_NO_THIRD_PARTY);
eina_strlcpy(basename, "config.eet", sizeof(path) - dirlen);
config = config_load(path);