From ba9769bc8c22c49fe1be6536d4684661ea2e079b Mon Sep 17 00:00:00 2001 From: Michael Drake Date: Mon, 27 May 2013 14:51:00 +0100 Subject: 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. --- content/content.c | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'content/content.c') 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; -- cgit v1.2.3