diff options
author | Daniel Silverstone <dsilvers@digital-scurf.org> | 2020-03-21 18:30:41 +0000 |
---|---|---|
committer | Daniel Silverstone <dsilvers@digital-scurf.org> | 2020-03-21 18:30:41 +0000 |
commit | 17b28e85c12309d60e3c45acb096b9989a7834ff (patch) | |
tree | d10a03b425d22b1c48be7356466b0420bfb36402 /content/handlers/html/html_object.c | |
parent | 313dc9b099a172914f312120f0f9d0260a3588cf (diff) | |
download | netsurf-17b28e85c12309d60e3c45acb096b9989a7834ff.tar.gz netsurf-17b28e85c12309d60e3c45acb096b9989a7834ff.tar.bz2 |
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 <dsilvers@digital-scurf.org>
Diffstat (limited to 'content/handlers/html/html_object.c')
-rw-r--r-- | content/handlers/html/html_object.c | 5 |
1 files changed, 3 insertions, 2 deletions
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: |