diff options
author | Daniel Silverstone <dsilvers@digital-scurf.org> | 2020-02-21 10:46:21 +0000 |
---|---|---|
committer | Daniel Silverstone <dsilvers@digital-scurf.org> | 2020-02-21 10:48:00 +0000 |
commit | db370bfdb7a091bb85a4e2120e641fea0c663734 (patch) | |
tree | 93a8ae9cdeb3bfc0d917533eb9bea5be663e33b6 /content/handlers/html/html_internal.h | |
parent | 4ef5c6cdb4f69b3fe232979cccc7c670a0938939 (diff) | |
download | netsurf-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_internal.h')
-rw-r--r-- | content/handlers/html/html_internal.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/content/handlers/html/html_internal.h b/content/handlers/html/html_internal.h index 2ff341038..9b363dc8b 100644 --- a/content/handlers/html/html_internal.h +++ b/content/handlers/html/html_internal.h @@ -396,6 +396,12 @@ nserror html_object_close_objects(html_content *html); nserror html_object_open_objects(html_content *html, struct browser_window *bw); nserror html_object_abort_objects(html_content *html); +/** + * Complete the HTML content state machine *iff* all scripts are finished + */ +nserror html_proceed_to_done(html_content *html); + + /* Events */ /** * Construct an event and fire it at the DOM |