mirror of
https://github.com/netsurf-browser/netsurf
synced 2024-12-22 20:16:54 +03:00
HTML content handler: Ensure script fetch hlcache callback handles errorcode.
This commit is contained in:
parent
a30ae27e5c
commit
830d7ec6b6
@ -173,6 +173,7 @@ convert_script_async_cb(hlcache_handle *script,
|
||||
|
||||
case CONTENT_MSG_ERROR:
|
||||
LOG("script %s failed: %s", nsurl_access(hlcache_handle_get_url(script)), event->data.error);
|
||||
case CONTENT_MSG_ERRORCODE:
|
||||
hlcache_handle_release(script);
|
||||
s->data.handle = NULL;
|
||||
parent->base.active--;
|
||||
@ -226,6 +227,7 @@ convert_script_defer_cb(hlcache_handle *script,
|
||||
|
||||
case CONTENT_MSG_ERROR:
|
||||
LOG("script %s failed: %s", nsurl_access(hlcache_handle_get_url(script)), event->data.error);
|
||||
case CONTENT_MSG_ERRORCODE:
|
||||
hlcache_handle_release(script);
|
||||
s->data.handle = NULL;
|
||||
parent->base.active--;
|
||||
@ -298,6 +300,7 @@ convert_script_sync_cb(hlcache_handle *script,
|
||||
|
||||
case CONTENT_MSG_ERROR:
|
||||
LOG("script %s failed: %s", nsurl_access(hlcache_handle_get_url(script)), event->data.error);
|
||||
case CONTENT_MSG_ERRORCODE:
|
||||
|
||||
hlcache_handle_release(script);
|
||||
s->data.handle = NULL;
|
||||
|
Loading…
Reference in New Issue
Block a user