From e2056974ca152a9c2cd14545bc610546c59264cc Mon Sep 17 00:00:00 2001 From: Vincent Sanders Date: Fri, 31 May 2013 09:22:08 +0100 Subject: fixup script message handling --- render/html_script.c | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/render/html_script.c b/render/html_script.c index 89d67413e..4aa8aff11 100644 --- a/render/html_script.c +++ b/render/html_script.c @@ -285,12 +285,6 @@ convert_script_sync_cb(hlcache_handle *script, assert(i != parent->scripts_count); switch (event->type) { - case CONTENT_MSG_LOADING: - break; - - case CONTENT_MSG_READY: - break; - case CONTENT_MSG_DONE: LOG(("script %d done '%s'", i, nsurl_access(hlcache_handle_get_url(script)))); @@ -339,10 +333,18 @@ convert_script_sync_cb(hlcache_handle *script, break; + case CONTENT_MSG_LOADING: + case CONTENT_MSG_READY: case CONTENT_MSG_STATUS: + case CONTENT_MSG_REDIRECT: + /* messages content handler will legitamately recive + * but does not need to handle + */ break; default: + /* all other messages are unexpected and fatal */ + LOG(("Unhandled message type %d", event->type)); assert(0); } -- cgit v1.2.3