From bcb0fa256918fe193b3cc8c7bb5511d942322cc6 Mon Sep 17 00:00:00 2001 From: Christian Dywan Date: Wed, 9 Nov 2011 21:11:46 +0100 Subject: [PATCH] Undo 'Recognize effectively empty prefixes of a stylesheet' Styles can apply to at least about: and file:// URLs as well. --- extensions/addons.c | 22 ---------------------- 1 file changed, 22 deletions(-) diff --git a/extensions/addons.c b/extensions/addons.c index e87ce0f9..462285c0 100644 --- a/extensions/addons.c +++ b/extensions/addons.c @@ -1070,28 +1070,6 @@ css_metadata_from_file (const gchar* filename, g_io_channel_shutdown (channel, false, 0); g_io_channel_unref (channel); - if (*includes != NULL) - { - /* Styles may have a whitelist even though it is as good as none. - It's more efficient if we avoid that. */ - GSList* list = *includes; - gboolean effectively_empty = TRUE; - while (list != NULL) - { - if (!g_str_has_suffix (list->data, "://")) - { - effectively_empty = FALSE; - break; - } - list = g_slist_next (list); - } - if (effectively_empty) - { - g_slist_free (list); - *includes = NULL; - } - } - return TRUE; }