~aperezdc/kiln

0575be63e4bb54cce16ac30b3c8523414117ee58 — Adrian Perez de Castro 4 years ago 0cc5091
gtkshell: Disable NPAPI browser plug-ins

Disable support for NPAPI browser plug-ins, as they should not be
needed for test driving Kiln. Mainstream browsers are axing them
anyway.
1 files changed, 1 insertions(+), 2 deletions(-)

M gtkshell/main.c
M gtkshell/main.c => gtkshell/main.c +1 -2
@@ 88,7 88,6 @@ static GtkWidget*
create_web_view (void)
{
    g_autoptr(WebKitWebContext) context = webkit_web_context_new ();
    webkit_web_context_set_additional_plugins_directory (context, "/usr/lib/mozilla/plugins");

    if (s_option_extensions_path) {
        g_message ("WebExtensions path: %s", s_option_extensions_path);


@@ 106,7 105,7 @@ create_web_view (void)

    /* Set those for convenience. */
    WebKitSettings *settings = webkit_web_view_get_settings (WEBKIT_WEB_VIEW (web_view));
    webkit_settings_set_enable_plugins (settings, TRUE);
    webkit_settings_set_enable_plugins (settings, FALSE);
    webkit_settings_set_enable_write_console_messages_to_stdout (settings, TRUE);
    webkit_settings_set_enable_developer_extras (settings, TRUE);