37 lines
632 B
Plaintext
37 lines
632 B
Plaintext
![]() |
include::../description.adoc[]
|
||
|
|
||
|
include::../ask-yourself.adoc[]
|
||
|
|
||
|
include::../recommended.adoc[]
|
||
|
|
||
|
== Sensitive Code Example
|
||
|
|
||
|
----
|
||
|
import android.webkit.WebView
|
||
|
|
||
|
val webView: WebView = findViewById(R.id.webview)
|
||
|
webView.getSettings().setJavaScriptEnabled(true) // Sensitive
|
||
|
----
|
||
|
|
||
|
== Compliant Solution
|
||
|
|
||
|
----
|
||
|
import android.webkit.WebView
|
||
|
|
||
|
val webView: WebView = findViewById(R.id.webview)
|
||
|
webView.getSettings().setJavaScriptEnabled(false)
|
||
|
----
|
||
|
|
||
|
include::../see.adoc[]
|
||
|
|
||
|
|
||
|
ifdef::env-github,rspecator-view[]
|
||
|
|
||
|
'''
|
||
|
== Implementation Specification
|
||
|
(visible only on this page)
|
||
|
|
||
|
include::../message.adoc[]
|
||
|
|
||
|
endif::env-github,rspecator-view[]
|