From: Paweł Forysiuk Date: Sat, 10 Sep 2011 17:36:04 +0000 (+0200) Subject: Only run user scripts on the main frame X-Git-Url: https://spindle.queued.net/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=4cdc347287a5d7e429ef34c5676e673e9018ea38;p=midori Only run user scripts on the main frame --- 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))