summaryrefslogtreecommitdiff
path: root/content/content.c
diff options
context:
space:
mode:
authorMichael Drake <tlsa@netsurf-browser.org>2013-05-27 14:51:00 +0100
committerMichael Drake <tlsa@netsurf-browser.org>2013-05-27 14:51:00 +0100
commitba9769bc8c22c49fe1be6536d4684661ea2e079b (patch)
treec7a3355fb2d84bb21608dc85d12e8de4662eb787 /content/content.c
parent8dc7ec2cb48d74a6fd808f6989ec08771f4bb98f (diff)
downloadnetsurf-ba9769bc8c22c49fe1be6536d4684661ea2e079b.tar.gz
netsurf-ba9769bc8c22c49fe1be6536d4684661ea2e079b.tar.bz2
Pass fetch redirect info up to content layer as content_msg. Mark redirect origin URLs as visited in browser window content callback. Note this doesn't mean we track redirects, it just lets us get the :visited link style on links that redirect.
Diffstat (limited to 'content/content.c')
-rw-r--r--content/content.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/content/content.c b/content/content.c
index 9bf4312ef..1825bdf10 100644
--- a/content/content.c
+++ b/content/content.c
@@ -188,6 +188,11 @@ nserror content_llcache_callback(llcache_handle *llcache,
msg_data.explicit_status_text = NULL;
content_broadcast(c, CONTENT_MSG_STATUS, msg_data);
break;
+ case LLCACHE_EVENT_REDIRECT:
+ msg_data.redirect.from = event->data.redirect.from;
+ msg_data.redirect.to = event->data.redirect.to;
+ content_broadcast(c, CONTENT_MSG_REDIRECT, msg_data);
+ break;
}
return error;