mirror of
https://github.com/netsurf-browser/netsurf
synced 2024-12-21 19:52:47 +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 */
|
||||
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 */
|
||||
const char *data;
|
||||
unsigned long size;
|
||||
|
Loading…
Reference in New Issue
Block a user