From ff8791a3f79426fc49f4bb01a12e2c6c975fc455 Mon Sep 17 00:00:00 2001 From: John Mark Bell Date: Sun, 11 Apr 2010 16:37:39 +0000 Subject: Ensure content can be shared when retrieving from cache svn path=/trunk/netsurf/; revision=10361 --- content/hlcache.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'content/hlcache.c') diff --git a/content/hlcache.c b/content/hlcache.c index 3627343ad..2dd3c1526 100644 --- a/content/hlcache.c +++ b/content/hlcache.c @@ -427,7 +427,6 @@ nserror hlcache_find_content(hlcache_retrieval_ctx *ctx) hlcache_handle entry_handle = { entry, NULL, NULL }; const llcache_handle *entry_llcache; - /** \todo Need to ensure that content is shareable */ /** \todo Need to ensure that content can be reused */ if (entry->content == NULL) continue; @@ -436,6 +435,10 @@ nserror hlcache_find_content(hlcache_retrieval_ctx *ctx) if (content_get_status(&entry_handle) == CONTENT_STATUS_ERROR) continue; + /* Ensure that content is shareable */ + if (content_is_shareable(entry->content) == false) + continue; + /* Ensure that quirks mode is acceptable */ if (content_matches_quirks(entry->content, ctx->child.quirks) == false) -- cgit v1.2.3