[hackers] [surf] Add config option for Java activation || Quentin Rameau

From: <git_AT_suckless.org>
Date: Thu, 11 May 2017 16:33:12 +0200 (CEST)

commit 93a3e4cda031d226549430e89b8119ce5c1ad7b3
Author: Quentin Rameau <quinq_AT_fifth.space>
AuthorDate: Thu May 11 15:27:27 2017 +0200
Commit: Quentin Rameau <quinq_AT_fifth.space>
CommitDate: Thu May 11 15:27:27 2017 +0200

    Add config option for Java activation

diff --git a/config.def.h b/config.def.h
index c55b690..44f4584 100644
--- a/config.def.h
+++ b/config.def.h
_AT_@ -21,6 +21,7 @@ static Parameter defconfig[ParameterLast] = {
         SETB(Geolocation, 0),
         SETB(HideBackground, 0),
         SETB(Inspector, 0),
+ SETB(Java, 1),
         SETB(JavaScript, 1),
         SETB(KioskMode, 0),
         SETB(LoadImages, 1),
diff --git a/surf.c b/surf.c
index a482f23..fb104e9 100644
--- a/surf.c
+++ b/surf.c
_AT_@ -72,6 +72,7 @@ typedef enum {
         Geolocation,
         HideBackground,
         Inspector,
+ Java,
         JavaScript,
         KioskMode,
         LoadImages,
_AT_@ -718,6 +719,9 @@ setparameter(Client *c, int refresh, ParamName p, const Arg *a)
         case Inspector:
                 webkit_settings_set_enable_developer_extras(s, a->b);
                 return; /* do not update */
+ case Java:
+ webkit_settings_set_enable_java(s, a->b);
+ return; /* do not update */
         case JavaScript:
                 webkit_settings_set_enable_javascript(s, a->b);
                 break;
_AT_@ -1020,6 +1024,7 @@ newview(Client *c, WebKitWebView *rv)
                    "enable-frame-flattening", curconfig[FrameFlattening].val.b,
                    "enable-html5-database", curconfig[DiskCache].val.b,
                    "enable-html5-local-storage", curconfig[DiskCache].val.b,
+ "enable-java", curconfig[Java].val.b,
                    "enable-javascript", curconfig[JavaScript].val.b,
                    "enable-plugins", curconfig[Plugins].val.b,
                    "enable-accelerated-2d-canvas", curconfig[AcceleratedCanvas].val.b,
Received on Thu May 11 2017 - 16:33:12 CEST

This archive was generated by hypermail 2.3.0 : Thu May 11 2017 - 16:36:31 CEST