mirror of
https://github.com/netsurf-browser/netsurf
synced 2024-12-23 20:46:50 +03:00
Don't call up if the parent's jscontext has gone NULL in the meantime
This commit is contained in:
parent
60c52e1eaf
commit
3aacba15f8
@ -278,7 +278,7 @@ convert_script_sync_cb(hlcache_handle *script,
|
|||||||
|
|
||||||
/* attempt to execute script */
|
/* attempt to execute script */
|
||||||
script_handler = select_script_handler(content_get_type(s->data.handle));
|
script_handler = select_script_handler(content_get_type(s->data.handle));
|
||||||
if (script_handler != NULL) {
|
if (script_handler != NULL && parent->jscontext != NULL) {
|
||||||
/* script has a handler */
|
/* script has a handler */
|
||||||
const char *data;
|
const char *data;
|
||||||
unsigned long size;
|
unsigned long size;
|
||||||
|
Loading…
Reference in New Issue
Block a user