diff options
author | Daniel Silverstone <dsilvers@digital-scurf.org> | 2020-03-21 19:08:21 +0000 |
---|---|---|
committer | Daniel Silverstone <dsilvers@digital-scurf.org> | 2020-03-21 19:35:15 +0000 |
commit | 66a23c25605c9c7eca7b5c9b420a079ce1203faf (patch) | |
tree | 642404822b87fd68fbe6909c54a17ceeb45e5995 /desktop/browser_private.h | |
parent | 337082f715951fe9f5b46f1a4710ca415f67e22d (diff) | |
download | netsurf-66a23c25605c9c7eca7b5c9b420a079ce1203faf.tar.gz netsurf-66a23c25605c9c7eca7b5c9b420a079ce1203faf.tar.bz2 |
Browser: Split JS threads between current and loading
Signed-off-by: Daniel Silverstone <dsilvers@digital-scurf.org>
Diffstat (limited to 'desktop/browser_private.h')
-rw-r--r-- | desktop/browser_private.h | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/desktop/browser_private.h b/desktop/browser_private.h index 562abf131..89dc5cca4 100644 --- a/desktop/browser_private.h +++ b/desktop/browser_private.h @@ -264,7 +264,12 @@ struct browser_window { /** current javascript context */ struct jsheap *jsheap; - struct jsthread *jsthread; + + /** The JS thread (if any) for the current content */ + struct jsthread *current_jsthread; + + /** The JS thread (if any) for the loading content */ + struct jsthread *loading_jsthread; /** cache of the currently displayed status text. */ struct { |