Bug#859100: webkit2gtk: webkit2gtk loads system-installed extensions by default

Jérémy Lal kapouer at melix.org
Wed Apr 5 11:33:07 UTC 2017


2017-04-05 11:47 GMT+02:00 Alberto Garcia <berto at igalia.com>:
> On Tue, Apr 04, 2017 at 02:26:47PM +0200, Jérémy Lal wrote:
>
>> > Try to disable them with this setting:
>> >
>> >    https://webkitgtk.org/reference/webkit2gtk/unstable/WebKitSettings.html#webkit-settings-set-enable-plugins
>>
>> i'm already doing that
>>
>> ```
>> WebKitSettings* settings = webkit_web_view_get_settings(view);
>> g_object_set(settings,
>>   "enable-plugins", FALSE,
>>   "enable-java", FALSE,
>>   NULL
>> );
>> webkit_web_view_load_uri(view, uri);
>> ```
>
> Ok... would it possible for you to prepare a very simple program that
> shows the problem? I can discuss it directly with the development team
> and forward it upstream if necessary.

Maybe this is a simpler check:

    strace /usr/lib/x86_64-linux-gnu/webkit2gtk-4.0/MiniBrowser
--enable-plugins=FALSE http://extensions.gnome.org 2> test.log
    fgrep mozilla test.log

It should show a "we cannot detect a running copy of gnome..."
accordingly, but strace shows it actually do something with the shared
plugins.
Why i claim here is that it actually loads the plugins (and probably
doesn't run their main hooks).

Jérémy



More information about the Pkg-webkit-maintainers mailing list