mirror of
https://github.com/netsurf-browser/netsurf
synced 2024-12-25 21:46:57 +03:00
HTML Script: Check for success on intern of mimetype.
This commit is contained in:
parent
bc94555d9e
commit
f3b7a0c44c
@ -540,7 +540,11 @@ exec_inline_script(html_content *c, dom_node *node, dom_string *mimetype)
|
||||
nscript->already_started = true;
|
||||
|
||||
/* ensure script handler for content type */
|
||||
dom_string_intern(mimetype, &lwcmimetype);
|
||||
exc = dom_string_intern(mimetype, &lwcmimetype);
|
||||
if (exc != DOM_NO_ERR) {
|
||||
return DOM_HUBBUB_DOM;
|
||||
}
|
||||
|
||||
script_handler = select_script_handler(content_factory_type_from_mime_type(lwcmimetype));
|
||||
lwc_string_unref(lwcmimetype);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user