From 7f0141d657892b135d82d707557dfcd7ce574954 Mon Sep 17 00:00:00 2001 From: Christian Dywan Date: Thu, 7 Jan 2010 21:10:14 +0100 Subject: [PATCH] Do not run scripts or styles on blank or special pages --- panels/midori-addons.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/panels/midori-addons.c b/panels/midori-addons.c index 091e5904..88061950 100644 --- a/panels/midori-addons.c +++ b/panels/midori-addons.c @@ -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) -- 2.39.5