diff options
author | Daniel Silverstone <dsilvers@digital-scurf.org> | 2019-12-01 15:49:08 +0000 |
---|---|---|
committer | Daniel Silverstone <dsilvers@digital-scurf.org> | 2019-12-01 15:49:08 +0000 |
commit | 6fc2666d07f28cd845b5697853b9b0e61f8848c5 (patch) | |
tree | 441933bf0787bba0143c702dd25baf78a14925f7 /content/content_protected.h | |
parent | 9741df214d7b291c8de40e9b21d4411e523d0bb3 (diff) | |
download | netsurf-6fc2666d07f28cd845b5697853b9b0e61f8848c5.tar.gz netsurf-6fc2666d07f28cd845b5697853b9b0e61f8848c5.tar.bz2 |
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 <dsilvers@digital-scurf.org>
Diffstat (limited to 'content/content_protected.h')
-rw-r--r-- | content/content_protected.h | 1 |
1 files changed, 1 insertions, 0 deletions
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); |