Do not run scripts or styles on blank or special pages
This commit is contained in:
parent
fbfe070588
commit
7f0141d657
1 changed files with 5 additions and 1 deletions
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue