Skip to content

Commit e31521b

Browse files
committed
Java: mention the default negative value for setJavaScriptEnabled
1 parent b189e5b commit e31521b

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

java/ql/src/Security/CWE/CWE-079/AndroidWebViewSettingsEnabledJavaScript.qhelp

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,9 @@
2222
</overview>
2323

2424
<recommendation>
25-
<p>If Javascript does not need to be enabled, call <code>setJavaScriptEnabled(false)</code> on the settings of the WebView.</p>
25+
<p>JavaScript execution is disabled by default. You can explicitly disable
26+
it by calling <code>setJavaScriptEnabled(false)</code> on the settings of
27+
the WebView.</p>
2628

2729
<p>If JavaScript is necessary, only load content from trusted servers using encrypted channels, such as HTTPS with certificate verification.</p>
2830
</recommendation>

0 commit comments

Comments
 (0)