diff options
author | Michael Drake <tlsa@netsurf-browser.org> | 2013-05-27 14:51:00 +0100 |
---|---|---|
committer | Michael Drake <tlsa@netsurf-browser.org> | 2013-05-27 14:51:00 +0100 |
commit | ba9769bc8c22c49fe1be6536d4684661ea2e079b (patch) | |
tree | c7a3355fb2d84bb21608dc85d12e8de4662eb787 /content/content.c | |
parent | 8dc7ec2cb48d74a6fd808f6989ec08771f4bb98f (diff) | |
download | netsurf-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.c | 5 |
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; |