From 4f14803e88f4a24431d37a62a6d818c0f5f3b4a7 Mon Sep 17 00:00:00 2001 From: Dustin Falgout Date: Mon, 18 Apr 2016 04:21:40 -0500 Subject: [PATCH] set webkit cookie policy for our web context --- src/lightdm-webkit2-greeter.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/lightdm-webkit2-greeter.c b/src/lightdm-webkit2-greeter.c index c69de0a..da7f6f8 100644 --- a/src/lightdm-webkit2-greeter.c +++ b/src/lightdm-webkit2-greeter.c @@ -230,6 +230,7 @@ main(int argc, char **argv) { WebKitUserContentManager *manager; WebKitWebContext *context; GtkCssProvider *css_provider; + WebKitCookieManager *cookie_manager; /* * Prevent memory from being swapped out, since we see unencrypted @@ -291,6 +292,10 @@ main(int argc, char **argv) { "initialize-web-extensions", G_CALLBACK(initialize_web_extensions_cb), NULL); + /* Set cookie policy */ + cookie_manager = webkit_web_context_get_cookie_manager(context); + webkit_cookie_manager_set_accept_policy(cookie_manager, WEBKIT_COOKIE_POLICY_ACCEPT_ALWAYS); + /* Register and connect handler of any messages we send from our web extension process. */ manager = webkit_user_content_manager_new(); webkit_user_content_manager_register_script_message_handler(manager, "GreeterBridge");