[webkit-gtk] Unable to disable loading of third-party plugins (Java, Flash)

Kim Silkebækken kim.silkebaekken at gmail.com
Mon Apr 28 02:57:28 PDT 2014


I've been scouring the web for a solution to this issue, but so far I've
been unsuccessful. I want to completely disable the loading of third-party
plugins like Java and Flash when using a WebKitGTK+ WebView. The project
I'm trying to get this to work on is wkline:

I suspect that some users may experience crashes due to malfunctioning
third-party plugins. The project also aims to be as lightweight as possible
(while still providing most of the functionality in WebKit), so disabling
plugin loading completely is desirable as this functionality will never be

I'm using the following code to attempt to disable all plugins:

                     "enable-java-applet", FALSE,
                     "enable-plugins", FALSE,

        web_view = WEBKIT_WEB_VIEW(webkit_web_view_new());
        webkit_web_view_set_settings(web_view, web_view_settings);

The enable-java-applet and enable-plugins settings are the only ones I've
found that are related to enabling and disabling plugins, but neither are
successful in disabling plugin loading. This is shown in the stdout output
when running my application:

[11:40:07] INFO wkline beta-git-351.0ddc716 (Apr 28 2014 08:19:49)
[11:40:07] INFO using config file '/home/kim/.config/wkline/config.json'
[11:40:07] INFO loading theme
[11:40:07] DEBUG webkit: window object cleared
java version "1.7.0_55"
OpenJDK Runtime Environment (IcedTea 2.4.7) (ArchLinux build
OpenJDK 64-Bit Server VM (build 24.51-b03, mixed mode)

As you can see, OpenJDK/IcedTea is being loaded by the web view regardless
of the web view settings.

I've been looking through the docs, stack overflow, etc., but haven't been
able to find another way of disabling plugin loading. Can anyone please
clarify this issue, or possibly point me in the direction of a solution?


Kim Silkebækken
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.webkit.org/pipermail/webkit-gtk/attachments/20140428/4d198b04/attachment-0001.html>

More information about the webkit-gtk mailing list