[meta] make Safari more secure
change
commit cde72c2ec71689ca410e83d5380749102f1f3fb2
author Alpha Chen <alpha.chen@gmail.com>
date
parent dc1c45c8
diff --git a/ansible/roles/osx/vars/main.yml b/ansible/roles/osx/vars/main.yml
index 452db291..0bfc6cb5 100644
--- a/ansible/roles/osx/vars/main.yml
+++ b/ansible/roles/osx/vars/main.yml
@@ -49,11 +49,22 @@ osx_defaults:
     type: string
     value: WhenScrolling
 
+  # Safari
   - # enable Debug menu in Safari
     domain: com.apple.Safari
     key: IncludeInternalDebugMenu
     type: bool
     value: true
+  - # disable Java
+    domain: com.apple.Safari
+    key: com.apple.Safari.ContentPageGroupIdentifier.WebKit2JavaEnabled
+    type: bool
+    value: false
+  - # disable Java
+    domain: com.apple.Safari
+    key: com.apple.Safari.ContentPageGroupIdentifier.WebKit2JavaEnabledForLocalFiles
+    type: bool
+    value: false
 
   - # disable dashboard
     domain: com.apple.dashboard