From 432da8972db9ff3842edf1d65998417d3fe4b00e Mon Sep 17 00:00:00 2001 From: portix Date: Sun, 13 Jan 2013 11:29:54 +0100 Subject: Save uri of tabs loaded in background with enabled 'load-on-focus', closing 261 --- src/session.c | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/session.c') diff --git a/src/session.c b/src/session.c index b106ce63..1ded8bb1 100644 --- a/src/session.c +++ b/src/session.c @@ -290,6 +290,11 @@ session_save(const char *name, int flags) { WebKitWebView *web = WEBVIEW(l); WebKitWebBackForwardList *bf_list = webkit_web_view_get_back_forward_list(web); + if (VIEW(l)->status->deferred) + { + g_string_append_printf(buffer, "0|%d %s unknown\n", VIEW(l)->status->lockprotect, VIEW(l)->status->deferred_uri); + continue; + } for (int i= -webkit_web_back_forward_list_get_back_length(bf_list); i<=webkit_web_back_forward_list_get_forward_length(bf_list); i++) { WebKitWebHistoryItem *item = webkit_web_back_forward_list_get_nth_item(bf_list, i); -- cgit v1.2.3