Skip to content
Permalink
Browse files

Add an extra call to fix windows hooking.

This is required to have persistent cookies on windows.
Thanks wenzo for writing the extremely magical magic fairydust code.
  • Loading branch information...
Marco Peereboom
Marco Peereboom committed Jul 10, 2013
1 parent dfa491f commit e3d0ac6266a0c92cd785cf57d9068d19edeb7006
Showing with 14 additions and 5 deletions.
  1. +5 −0 cookie.c
  2. +9 −5 xombrero.h
@@ -210,6 +210,11 @@ setup_cookies(void)
set_hook((void *)&_soup_cookie_jar_delete_cookie,
"soup_cookie_jar_delete_cookie");

#if defined __MINGW32__
/* windows hooking is a horror show, nothing to see here move along */
fixup_windows_hooks();
#endif

if (cookies_enabled == 0)
return;

@@ -416,11 +416,13 @@ void button_set_file(GtkWidget *, char *);
void webview_progress_changed_cb(WebKitWebView *, GParamSpec *, struct tab *);

/* cookies */
int remove_cookie(int);
int remove_cookie_domain(int);
int remove_cookie_all(void);
void print_cookie(char *msg, SoupCookie *);
void setup_cookies(void);
int remove_cookie(int);
int remove_cookie_domain(int);
int remove_cookie_all(void);
void print_cookie(char *msg, SoupCookie *);
void setup_cookies(void);
void soup_cookie_jar_add_cookie(SoupCookieJar *, SoupCookie *);
void soup_cookie_jar_delete_cookie(SoupCookieJar *, SoupCookie *);

/* history */
int insert_history_item(const gchar *uri, const gchar *title, time_t time);
@@ -983,6 +985,8 @@ extern uint64_t blocked_cookies;
extern SoupSession *session;

extern void (*_soup_cookie_jar_add_cookie)(SoupCookieJar *, SoupCookie *);
extern void (*_soup_cookie_jar_delete_cookie)(SoupCookieJar *,
SoupCookie *);

extern struct history_list hl;
extern int hl_purge_count;

0 comments on commit e3d0ac6

Please sign in to comment.
You can’t perform that action at this time.