From 17b28e85c12309d60e3c45acb096b9989a7834ff Mon Sep 17 00:00:00 2001 From: Daniel Silverstone Date: Sat, 21 Mar 2020 18:30:41 +0000 Subject: JS: Split concept of JS context into heap and thread In preparation for proper splitting of Javascript support into heaps and threads, this renames the types and corrects the no-js builds to still work. At this time no substantive change in semantics exists, and the duktape build won't work. Signed-off-by: Daniel Silverstone --- content/handlers/html/html_object.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'content/handlers/html/html_object.c') diff --git a/content/handlers/html/html_object.c b/content/handlers/html/html_object.c index 223f5516d..3a60c47f1 100644 --- a/content/handlers/html/html_object.c +++ b/content/handlers/html/html_object.c @@ -340,8 +340,9 @@ html_object_callback(hlcache_handle *object, /* Don't care about favicons that aren't on top level content */ break; - case CONTENT_MSG_GETCTX: - *(event->data.jscontext) = NULL; + case CONTENT_MSG_GETTHREAD: + /* Objects don't have JS threads */ + *(event->data.jsthread) = NULL; break; case CONTENT_MSG_GETDIMS: -- cgit v1.2.3