summaryrefslogtreecommitdiff
path: root/surf.c
diff options
context:
space:
mode:
authorQuentin Rameau <quinq@fifth.space>2017-05-11 15:27:27 +0200
committerQuentin Rameau <quinq@fifth.space>2017-05-11 15:27:27 +0200
commit93a3e4cda031d226549430e89b8119ce5c1ad7b3 (patch)
tree12920074c3393e2ebe028932eaa54f6f429b1c74 /surf.c
parent298e688933395af61f56cb2a8710e7bac8e5453d (diff)
downloadsurf-93a3e4cda031d226549430e89b8119ce5c1ad7b3.tar.gz
surf-93a3e4cda031d226549430e89b8119ce5c1ad7b3.tar.bz2
surf-93a3e4cda031d226549430e89b8119ce5c1ad7b3.zip
Add config option for Java activation
Diffstat (limited to 'surf.c')
-rw-r--r--surf.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/surf.c b/surf.c
index a482f23..fb104e9 100644
--- a/surf.c
+++ b/surf.c
@@ -72,6 +72,7 @@ typedef enum {
Geolocation,
HideBackground,
Inspector,
+ Java,
JavaScript,
KioskMode,
LoadImages,
@@ -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;
@@ -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,