mirror of
https://github.com/netsurf-browser/netsurf
synced 2025-02-14 05:24:16 +03:00
add handling for recived but no action redirect messages and log before abort. (closes #3614409)
This commit is contained in:
parent
4bd65d429c
commit
1f14790d47
15
css/css.c
15
css/css.c
@ -643,13 +643,10 @@ nserror nscss_import(hlcache_handle *handle,
|
||||
assert(ctx->css->imports[ctx->index].c == handle);
|
||||
|
||||
switch (event->type) {
|
||||
case CONTENT_MSG_LOADING:
|
||||
break;
|
||||
case CONTENT_MSG_READY:
|
||||
break;
|
||||
case CONTENT_MSG_DONE:
|
||||
error = nscss_import_complete(ctx);
|
||||
break;
|
||||
|
||||
case CONTENT_MSG_ERROR:
|
||||
hlcache_handle_release(handle);
|
||||
ctx->css->imports[ctx->index].c = NULL;
|
||||
@ -657,9 +654,19 @@ nserror nscss_import(hlcache_handle *handle,
|
||||
error = nscss_import_complete(ctx);
|
||||
/* Already released handle */
|
||||
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);
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user