diff options
author | portix <portix@gmx.net> | 2011-07-18 16:41:57 +0200 |
---|---|---|
committer | portix <portix@gmx.net> | 2011-07-18 16:41:57 +0200 |
commit | a71d5a26501d35e43789723729193658db4e5136 (patch) | |
tree | 9796c436f93eb29c6053f580e5caf6c9435e26b8 /src/plugins.c | |
parent | c8d4a663db1c09d75e4a0df88dbae3efe20f6009 (diff) | |
download | dwb-a71d5a26501d35e43789723729193658db4e5136.zip |
Force background for blocked plugins
Diffstat (limited to 'src/plugins.c')
-rw-r--r-- | src/plugins.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/plugins.c b/src/plugins.c index 278591a8..f20821a7 100644 --- a/src/plugins.c +++ b/src/plugins.c @@ -60,6 +60,7 @@ dwb_plugins_before_load_cb(WebKitDOMDOMWindow *win, WebKitDOMEvent *event, GList && ! g_slist_find(ALLOWED(gl), element) ) { webkit_dom_event_prevent_default(event); webkit_dom_event_stop_propagation(event); + webkit_dom_element_set_attribute(element, "style", "displaye:none!important", NULL); dwb_plugins_create_click_element(element, gl); } @@ -110,6 +111,7 @@ void dwb_plugins_frame_created_cb(WebKitWebView *wv, WebKitWebFrame *frame, GList *gl) { g_signal_connect(frame, "load-committed", G_CALLBACK(dwb_plugins_frame_load_committed_cb), gl); } + void dwb_plugin_blocker_connect(GList *gl) { VIEW(gl)->status->signals[SIG_PLUGINS_LOAD] = g_signal_connect(WEBVIEW(gl), "notify::load-status", G_CALLBACK(dwb_plugins_load_status_cb), gl); |