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

Jérémy Lal kapouer at melix.org
Tue Apr 4 12:26:47 UTC 2017


2017-04-04 14:16 GMT+02:00 Alberto Garcia <berto at igalia.com>:
> On Thu, Mar 30, 2017 at 12:26:37PM +0200, Jérémy Lal wrote:
>
>> It appears that when/if a java or flash plugin is installed from
>> another debian package, webkit2gtk tries to load it, even when
>> setting a custom, local, webextensions directory as documented in
>> https://webkitgtk.org/reference/webkit2gtk/stable/WebKitWebContext.html#webkit-web-context-set-web-extensions-directory
>
> Web Extensions != NPAPI plugins
>
> Web Extensions are these:
>
>    https://blogs.igalia.com/carlosgc/2013/09/10/webkit2gtk-web-process-extensions/
>
> NPAPI plugins are java, flash, etc.

Indeed, nevertheless,

> 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);
```
(see also https://github.com/kapouer/node-webkitgtk/blob/6586b60/src/webview.cc#L614)

Jérémy



More information about the Pkg-webkit-maintainers mailing list