From 09eb89e3c3b7ce98d66369ca5d6c41283caf9873 Mon Sep 17 00:00:00 2001 From: Daniel Silverstone Date: Sat, 3 Aug 2019 21:13:19 +0100 Subject: Migrate query dispatch up from llcache to hlcache As a first step in refactoring query handling to be managed by `browser_window`, this migrates the calling of the query handler from the llcache object code up to the hlcache. In theory this may result in multiple queries happening for one object, but we mitigate multiple-responses in the llcache so all should be well. Signed-off-by: Daniel Silverstone --- content/content.c | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'content/content.c') diff --git a/content/content.c b/content/content.c index f5303400d..af4cdaac3 100644 --- a/content/content.c +++ b/content/content.c @@ -186,6 +186,13 @@ nserror content_llcache_callback(llcache_handle *llcache, msg_data.redirect.to = event->data.redirect.to; content_broadcast(c, CONTENT_MSG_REDIRECT, &msg_data); break; + case LLCACHE_EVENT_QUERY: + case LLCACHE_EVENT_QUERY_FINISHED: + /* Should never happen, because the object can't query once + * it has fetched enough that a migration to content happened. + */ + NSLOG(netsurf, DEBUG, "Encountered query related events during content handling"); + break; } return error; -- cgit v1.2.3