summaryrefslogtreecommitdiff
path: root/src/plugins.c
diff options
context:
space:
mode:
authorportix <portix@gmx.net>2011-09-13 01:07:10 +0200
committerportix <portix@gmx.net>2011-09-13 01:07:10 +0200
commita45378e66b62e1d53b4b0aca4b3cf0c0f5c92c96 (patch)
tree6edbf5cd7e217ba6a007b0059bd2a3e49e698c0b /src/plugins.c
parent99118d44031ee8aa76f52690d45acd76b6600097 (diff)
downloaddwb-a45378e66b62e1d53b4b0aca4b3cf0c0f5c92c96.zip
Show blocked plugins in statusbar
--HG-- branch : develop
Diffstat (limited to 'src/plugins.c')
-rw-r--r--src/plugins.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/plugins.c b/src/plugins.c
index f469119d..a5541b22 100644
--- a/src/plugins.c
+++ b/src/plugins.c
@@ -72,6 +72,8 @@ dwb_plugins_before_load_cb(WebKitDOMDOMWindow *win, WebKitDOMEvent *event, GList
&& (! g_ascii_strcasecmp(tagname, "object") || ! g_ascii_strcasecmp(tagname, "embed")) )
&& ! g_slist_find(ALLOWED(gl), element) ) {
PRINT_DEBUG("%s : %s", webkit_dom_element_get_attribute(element, "src"), type);
+
+ VIEW(gl)->status->pb_status |= PLUGIN_STATUS_HAS_PLUGIN;
webkit_dom_event_prevent_default(event);
webkit_dom_event_stop_propagation(event);
@@ -165,6 +167,7 @@ dwb_plugins_create_plugin_widget_cb(WebKitWebView *wv, char *mimetype, char *uri
WebKitDOMDocument *doc = webkit_web_view_get_dom_document(wv);
WebKitDOMElement *element;
if ( (element = dwb_plugins_find_in_frames(doc, uri)) != NULL && !g_slist_find(ALLOWED(gl), element)) {
+ VIEW(gl)->status->pb_status |= PLUGIN_STATUS_HAS_PLUGIN;
char *display = dwb_plugins_create_click_element(element, gl);
webkit_dom_element_set_attribute(element, "style", "display:none!important", NULL);
g_object_set_data((gpointer)element, "dwb-plugin-display", display);