From 4de9349fb8cd7b858785e428ae6f6da33ba38f3a Mon Sep 17 00:00:00 2001 From: Michael Drake Date: Thu, 17 Mar 2011 12:09:48 +0000 Subject: Skip duplicates on about:about. svn path=/trunk/netsurf/; revision=12090 --- content/fetchers/about.c | 22 ++++++++++++++-------- 1 file changed, 14 insertions(+), 8 deletions(-) diff --git a/content/fetchers/about.c b/content/fetchers/about.c index 053051dda..69c4d4329 100644 --- a/content/fetchers/about.c +++ b/content/fetchers/about.c @@ -387,17 +387,18 @@ static bool fetch_about_about_handler(struct fetch_about_context *ctx); struct about_handlers { const char *name; fetch_about_handler handler; + bool duplicate; }; struct about_handlers about_handler_list[] = { - { "credits", fetch_about_credits_handler }, - { "licence", fetch_about_licence_handler }, - { "license", fetch_about_license_handler }, - { "config", fetch_about_config_handler }, - { "Choices", fetch_about_choices_handler }, - { "testament", fetch_about_testament_handler }, - { "about", fetch_about_about_handler }, - { "blank", fetch_about_blank_handler } /* The default */ + { "credits", fetch_about_credits_handler, false }, + { "licence", fetch_about_licence_handler, false }, + { "license", fetch_about_license_handler, true }, + { "config", fetch_about_config_handler, false }, + { "Choices", fetch_about_choices_handler, false }, + { "testament", fetch_about_testament_handler, false }, + { "about", fetch_about_about_handler, false }, + { "blank", fetch_about_blank_handler, false } /* The default */ }; #define about_handler_list_len (sizeof(about_handler_list) / sizeof(struct about_handlers)) @@ -437,6 +438,11 @@ static bool fetch_about_about_handler(struct fetch_about_context *ctx) "