Move JavascriptInterfaceMethod to WebView.qll

This commit is contained in:
Ed Minnix
2023-01-09 15:10:23 -05:00
parent 0be8648a9d
commit 293a203756
2 changed files with 7 additions and 7 deletions

View File

@@ -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") }
}

View File

@@ -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") }
}