summaryrefslogtreecommitdiff
path: root/render/html_script.c
diff options
context:
space:
mode:
authorVincent Sanders <vince@kyllikki.org>2015-10-02 09:29:51 +0100
committerVincent Sanders <vince@kyllikki.org>2015-10-02 09:29:51 +0100
commit9ebdc7dd7abb7537f9e47a5dd8dab8585696da0b (patch)
treedd759ce0b7f68e1fe3bee9b2462c059f8756b1ed /render/html_script.c
parent33264e012b6153e3da12eb3582c4561d6f238d2f (diff)
downloadnetsurf-9ebdc7dd7abb7537f9e47a5dd8dab8585696da0b.tar.gz
netsurf-9ebdc7dd7abb7537f9e47a5dd8dab8585696da0b.tar.bz2
ensure completion of async js scripts completes the fetch
When the fetch of asynchronous javascript scripts completed the completion of html rendering was not processed leaving the state machine waiting forever.
Diffstat (limited to 'render/html_script.c')
-rw-r--r--render/html_script.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/render/html_script.c b/render/html_script.c
index 07bee51c1..ef6f4d673 100644
--- a/render/html_script.c
+++ b/render/html_script.c
@@ -183,6 +183,13 @@ convert_script_async_cb(hlcache_handle *script,
break;
}
+ /* if there are no active fetches remaining begin post parse
+ * conversion
+ */
+ if (html_can_begin_conversion(parent)) {
+ html_begin_conversion(parent);
+ }
+
return NSERROR_OK;
}