From 4cdc347287a5d7e429ef34c5676e673e9018ea38 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pawe=C5=82=20Forysiuk?= Date: Sat, 10 Sep 2011 19:36:04 +0200 Subject: [PATCH] Only run user scripts on the main frame --- extensions/addons.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/extensions/addons.c b/extensions/addons.c index 2916ea82..b2fb6203 100644 --- a/extensions/addons.c +++ b/extensions/addons.c @@ -1458,6 +1458,10 @@ addons_context_ready_cb (WebKitWebView* web_view, struct AddonElement* script, *style; struct AddonsList* scripts_list, *styles_list; + /* Not a main frame! Abort */ + if (web_frame != webkit_web_view_get_main_frame (web_view)) + return; + uri = katze_object_get_string (web_view, "uri"); /* Don't run scripts or styles on blank or special pages */ if (!(uri && *uri) || !strncmp (uri, "about:", 6))