Do not run scripts or styles on blank or special pages

This commit is contained in:
Christian Dywan 2010-01-07 21:10:14 +01:00
parent fbfe070588
commit 7f0141d657

View file

@ -807,8 +807,12 @@ midori_web_widget_context_ready_cb (GtkWidget* web_widget,
gchar* message;
uri = katze_object_get_string (web_widget, "uri");
if (!uri)
/* Don't run scripts or styles on blank or special pages */
if (!(uri && *uri && strncmp (uri, "about:", 6)))
{
g_free (uri);
return;
}
elements = addons->elements;
while (elements)