summaryrefslogtreecommitdiff
path: root/content/handlers/html/html_script.c
diff options
context:
space:
mode:
authorDaniel Silverstone <dsilvers@digital-scurf.org>2020-02-21 10:46:21 +0000
committerDaniel Silverstone <dsilvers@digital-scurf.org>2020-02-21 10:48:00 +0000
commitdb370bfdb7a091bb85a4e2120e641fea0c663734 (patch)
tree93a8ae9cdeb3bfc0d917533eb9bea5be663e33b6 /content/handlers/html/html_script.c
parent4ef5c6cdb4f69b3fe232979cccc7c670a0938939 (diff)
downloadnetsurf-db370bfdb7a091bb85a4e2120e641fea0c663734.tar.gz
netsurf-db370bfdb7a091bb85a4e2120e641fea0c663734.tar.bz2
HTML: Complete content state machine after async script
The async script completion process needs to complete the content state machine so that browser throbbers eventually stop once async scripts have fetched and run, even if that happens *after* conversion finishes. Signed-off-by: Daniel Silverstone <dsilvers@digital-scurf.org>
Diffstat (limited to 'content/handlers/html/html_script.c')
-rw-r--r--content/handlers/html/html_script.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/content/handlers/html/html_script.c b/content/handlers/html/html_script.c
index e11e47c56..ed73f50d8 100644
--- a/content/handlers/html/html_script.c
+++ b/content/handlers/html/html_script.c
@@ -108,7 +108,7 @@ nserror html_script_exec(html_content *c, bool allow_defer)
}
}
- return NSERROR_OK;
+ return html_proceed_to_done(c);
}
/* create new html script entry */
@@ -208,7 +208,7 @@ convert_script_async_cb(hlcache_handle *script,
* scripts as they come in.
*/
else if (parent->conversion_begun) {
- html_script_exec(parent, false);
+ return html_script_exec(parent, false);
}
return NSERROR_OK;