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. --- render/html_css.c | 3 +++ render/html_object.c | 1 + 2 files changed, 4 insertions(+) (limited to 'render') diff --git a/render/html_css.c b/render/html_css.c index 7c0962070..a5c63554f 100644 --- a/render/html_css.c +++ b/render/html_css.c @@ -103,6 +103,9 @@ html_convert_css_callback(hlcache_handle *css, case CONTENT_MSG_READY: break; + case CONTENT_MSG_REDIRECT: + break; + case CONTENT_MSG_DONE: LOG(("done stylesheet slot %d '%s'", i, nsurl_access(hlcache_handle_get_url(css)))); diff --git a/render/html_object.c b/render/html_object.c index d4d0ff9d2..b8f95dbab 100644 --- a/render/html_object.c +++ b/render/html_object.c @@ -203,6 +203,7 @@ html_object_callback(hlcache_handle *object, break; case CONTENT_MSG_REFORMAT: + case CONTENT_MSG_REDIRECT: break; case CONTENT_MSG_REDRAW: -- cgit v1.2.3