summaryrefslogtreecommitdiff
path: root/src/session.c
diff options
context:
space:
mode:
authorportix <none@none>2013-01-13 11:29:54 +0100
committerportix <none@none>2013-01-13 11:29:54 +0100
commit432da8972db9ff3842edf1d65998417d3fe4b00e (patch)
treefe68b7c87adab6ccc8d956b021a73e36f57e2720 /src/session.c
parentc14454b0be6a047822ef0d7e7eb332866a0616d1 (diff)
downloaddwb-432da8972db9ff3842edf1d65998417d3fe4b00e.zip
Save uri of tabs loaded in background with enabled 'load-on-focus', closing 261
Diffstat (limited to 'src/session.c')
-rw-r--r--src/session.c5
1 files changed, 5 insertions, 0 deletions
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);