mirror of
https://github.com/netsurf-browser/netsurf
synced 2025-02-18 15:34:31 +03:00
Add comment on on-demand JS context creation safety
Checking for enable_scripting isn't needed here.
This commit is contained in:
parent
82b298ac2c
commit
d9e92d2032
@ -517,6 +517,9 @@ html_process_script(void *ctx, dom_node *node)
|
||||
dom_hubbub_error err = DOM_HUBBUB_OK;
|
||||
|
||||
/* ensure javascript context is available */
|
||||
/* We should only ever be here if scripting was enabled for this
|
||||
* content so it's correct to make a javascript context if there
|
||||
* isn't one already. */
|
||||
if (c->jscontext == NULL) {
|
||||
union content_msg_data msg_data;
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user