Skip to content

Commit

Permalink
Fix cookie manager
Browse files Browse the repository at this point in the history
  • Loading branch information
danirabbit committed Oct 15, 2023
1 parent 33d02a8 commit 83504c0
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions src/TabbedWebView.vala
Original file line number Diff line number Diff line change
Expand Up @@ -60,14 +60,14 @@ public class Captive.TabbedWebView : WebKit.WebView {
"cookies.sqlite"
);

// if (FileUtils.test (cookies_db_path, FileTest.IS_REGULAR)) {
// var cookie_manager = get_context ().get_cookie_manager ();

// cookie_manager.set_accept_policy (WebKit.CookieAcceptPolicy.ALWAYS);
// cookie_manager.set_persistent_storage (cookies_db_path, WebKit.CookiePersistentStorage.SQLITE);
// } else {
// critical ("No cookies store found, not saving the cookies…");
// }
if (FileUtils.test (cookies_db_path, FileTest.IS_REGULAR)) {
var cookie_manager = network_session.get_cookie_manager ();

cookie_manager.set_accept_policy (WebKit.CookieAcceptPolicy.ALWAYS);
cookie_manager.set_persistent_storage (cookies_db_path, WebKit.CookiePersistentStorage.SQLITE);
} else {
critical ("No cookies store found, not saving the cookies…");
}
}

insecure_content_detected.connect (() => {
Expand Down

0 comments on commit 83504c0

Please sign in to comment.