From 6fc2666d07f28cd845b5697853b9b0e61f8848c5 Mon Sep 17 00:00:00 2001 From: Daniel Silverstone Date: Sun, 1 Dec 2019 15:49:08 +0000 Subject: Allow contents to indicate if they believe they may not be secure. HTML contents reference many other objects. The browser window needs to know if any of them may not be secure, in which case it needs to report that in its page state. If other content types might refer to sub-contents, they will need to define the callback too. Signed-off-by: Daniel Silverstone --- content/content_protected.h | 1 + 1 file changed, 1 insertion(+) (limited to 'content/content_protected.h') diff --git a/content/content_protected.h b/content/content_protected.h index ec62a2183..af0ee7259 100644 --- a/content/content_protected.h +++ b/content/content_protected.h @@ -83,6 +83,7 @@ struct content_handler { void (*add_user)(struct content *c); void (*remove_user)(struct content *c); bool (*exec)(struct content *c, const char *src, size_t srclen); + bool (*saw_insecure_objects)(struct content *c); /** handler dependant content sensitive internal data interface. */ void * (*get_internal)(const struct content *c, void *context); -- cgit v1.2.3