]> spindle.queued.net Git - midori/commitdiff
Undo 'Recognize effectively empty prefixes of a stylesheet'
authorChristian Dywan <christian@twotoasts.de>
Wed, 9 Nov 2011 20:11:46 +0000 (21:11 +0100)
committerChristian Dywan <christian@twotoasts.de>
Wed, 9 Nov 2011 21:06:10 +0000 (22:06 +0100)
Styles can apply to at least about: and file:// URLs as well.

extensions/addons.c

index e87ce0f94c16259c62d82f7f78558b0a6d0a414e..462285c023b5177a686259187c807ee68a8625f6 100644 (file)
@@ -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;
 }