diff options
author | Vincent Sanders <vince@kyllikki.org> | 2013-05-31 09:22:08 +0100 |
---|---|---|
committer | Vincent Sanders <vince@kyllikki.org> | 2013-05-31 09:22:08 +0100 |
commit | e2056974ca152a9c2cd14545bc610546c59264cc (patch) | |
tree | d2f95d995b50821b2b7f6bfcf5b908cb6fd0fd61 | |
parent | 22ce03aed6e011a53a8adbbbf2cf4df798d8cc45 (diff) | |
download | netsurf-e2056974ca152a9c2cd14545bc610546c59264cc.tar.gz netsurf-e2056974ca152a9c2cd14545bc610546c59264cc.tar.bz2 |
fixup script message handling
-rw-r--r-- | render/html_script.c | 14 |
1 files 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); } |