Skip to content

Commit e259ef5

Browse files
committed
Java: Add class for android.webkit.WebSettings.setAllowContentAccess
1 parent b70ca77 commit e259ef5

File tree

1 file changed

+8
-0
lines changed
  • java/ql/lib/semmle/code/java/frameworks/android

1 file changed

+8
-0
lines changed

java/ql/lib/semmle/code/java/frameworks/android/WebView.qll

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,14 @@ class WebViewSetWebViewClientMethod extends Method {
7878
}
7979
}
8080

81+
/** The method `setAllowContentAccess` of the class `android.webkit.WebSettings` */
82+
class AllowContentAccessMethod extends Method {
83+
AllowContentAccessMethod() {
84+
this.getDeclaringType() instanceof TypeWebSettings and
85+
this.hasName("setAllowContentAccess")
86+
}
87+
}
88+
8189
/** The method `shouldOverrideUrlLoading` of the class `android.webkit.WebViewClient`. */
8290
class ShouldOverrideUrlLoading extends Method {
8391
ShouldOverrideUrlLoading() {

0 commit comments

Comments
 (0)