[Xfce4-commits] <midori:master> Never download plugins from sub resources
Christian Dywan
noreply at xfce.org
Sun Nov 25 12:18:01 CET 2012
Updating branch refs/heads/master
to 8a6758a213207e4972ab4b6e922f9bb39c02e33c (commit)
from 83fdfb970451f827144db26bee606103fbb4af60 (commit)
commit 8a6758a213207e4972ab4b6e922f9bb39c02e33c
Author: Christian Dywan <christian at twotoasts.de>
Date: Sun Nov 25 12:14:25 2012 +0100
Never download plugins from sub resources
midori/midori-view.c | 5 +++++
1 files changed, 5 insertions(+), 0 deletions(-)
diff --git a/midori/midori-view.c b/midori/midori-view.c
index be14812..b413cea 100644
--- a/midori/midori-view.c
+++ b/midori/midori-view.c
@@ -2783,6 +2783,11 @@ webkit_web_view_mime_type_decision_cb (GtkWidget* web_view,
WebKitWebPolicyDecision* decision,
MidoriView* view)
{
+ /* FIXME: Never download plugins from sub resources */
+ if (!strcmp (mime_type, "application/x-shockwave-flash"))
+ if (strcmp (midori_tab_get_uri (MIDORI_TAB (view)), webkit_network_request_get_uri (request)))
+ return FALSE;
+
if (webkit_web_view_can_show_mime_type (WEBKIT_WEB_VIEW (web_view), mime_type))
{
if (web_frame == webkit_web_view_get_main_frame (WEBKIT_WEB_VIEW (web_view)))
More information about the Xfce4-commits
mailing list