Skip to content

Commit 293a203

Browse files
committed
Move JavascriptInterfaceMethod to WebView.qll
1 parent 0be8648 commit 293a203

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

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

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -127,10 +127,3 @@ class CreateFromParcelMethod extends Method {
127127
this.getEnclosingCallable().getDeclaringType().getAnAncestor() instanceof TypeParcelable
128128
}
129129
}
130-
131-
/**
132-
* A method annotated with the `android.webkit.JavascriptInterface` annotation.
133-
*/
134-
class JavascriptInterfaceMethod extends Method {
135-
JavascriptInterfaceMethod() { this.hasAnnotation("android.webkit", "JavascriptInterface") }
136-
}

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

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -85,3 +85,10 @@ class ShouldOverrideUrlLoading extends Method {
8585
this.hasName("shouldOverrideUrlLoading")
8686
}
8787
}
88+
89+
/**
90+
* A method annotated with the `android.webkit.JavascriptInterface` annotation.
91+
*/
92+
class JavascriptInterfaceMethod extends Method {
93+
JavascriptInterfaceMethod() { this.hasAnnotation("android.webkit", "JavascriptInterface") }
94+
}

0 commit comments

Comments
 (0)