mirror of
https://github.com/github/codeql.git
synced 2026-04-30 19:26:02 +02:00
Move JavascriptInterfaceMethod to WebView.qll
This commit is contained in:
@@ -127,10 +127,3 @@ class CreateFromParcelMethod extends Method {
|
||||
this.getEnclosingCallable().getDeclaringType().getAnAncestor() instanceof TypeParcelable
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* A method annotated with the `android.webkit.JavascriptInterface` annotation.
|
||||
*/
|
||||
class JavascriptInterfaceMethod extends Method {
|
||||
JavascriptInterfaceMethod() { this.hasAnnotation("android.webkit", "JavascriptInterface") }
|
||||
}
|
||||
|
||||
@@ -85,3 +85,10 @@ class ShouldOverrideUrlLoading extends Method {
|
||||
this.hasName("shouldOverrideUrlLoading")
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* A method annotated with the `android.webkit.JavascriptInterface` annotation.
|
||||
*/
|
||||
class JavascriptInterfaceMethod extends Method {
|
||||
JavascriptInterfaceMethod() { this.hasAnnotation("android.webkit", "JavascriptInterface") }
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user