Add comment on on-demand JS context creation safety

Checking for enable_scripting isn't needed here.
This commit is contained in:
Michael Drake 2016-01-21 14:58:38 +00:00
parent 82b298ac2c
commit d9e92d2032

View File

@ -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;