summaryrefslogtreecommitdiff
path: root/render
diff options
context:
space:
mode:
authorMichael Drake <michael.drake@codethink.co.uk>2017-03-23 14:25:46 +0000
committerMichael Drake <tlsa@netsurf-browser.org>2017-03-23 14:31:38 +0000
commit6bfc8ba547698e81dd33f0fdaff29bb227906d8d (patch)
tree45e5b9f6b7635685c1ce330147e0694e5df18a30 /render
parent0747e0ed53ed802757d2fa322a96577af4a8a57f (diff)
downloadnetsurf-6bfc8ba547698e81dd33f0fdaff29bb227906d8d.tar.gz
netsurf-6bfc8ba547698e81dd33f0fdaff29bb227906d8d.tar.bz2
HTML content handler: Don't let aborted contents get stuck in LOADING.
Previously, aborted HTML fetches left the content in LOADING state, and the hlcache clean code does not clean contents in the LOADING state. They, and their child contents ended up stuck in the cache forever.
Diffstat (limited to 'render')
-rw-r--r--render/html.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/render/html.c b/render/html.c
index 544b7b61a..62b7f3eec 100644
--- a/render/html.c
+++ b/render/html.c
@@ -1220,6 +1220,7 @@ html_begin_conversion(html_content *htmlc)
if (htmlc->aborted) {
LOG("Conversion aborted (%p) (active: %u)", htmlc,
htmlc->base.active);
+ content_set_error(&htmlc->base);
content_broadcast_errorcode(&htmlc->base, NSERROR_STOPPED);
return false;
}