mirror of
https://github.com/github/codeql.git
synced 2026-03-01 13:23:49 +01:00
20 lines
540 B
Plaintext
20 lines
540 B
Plaintext
import java
|
|
import semmle.code.java.security.AndroidWebViewCertificateValidationQuery
|
|
import TestUtilities.InlineExpectationsTest
|
|
|
|
module WebViewTest implements TestSig {
|
|
string getARelevantTag() { result = "hasResult" }
|
|
|
|
predicate hasActualResult(Location location, string element, string tag, string value) {
|
|
exists(OnReceivedSslErrorMethod m |
|
|
trustsAllCerts(m) and
|
|
location = m.getLocation() and
|
|
element = m.toString() and
|
|
tag = "hasResult" and
|
|
value = ""
|
|
)
|
|
}
|
|
}
|
|
|
|
import MakeTest<WebViewTest>
|