Skip to content

Commit 24527bf

Browse files
committed
Minor change in WKNavigationDelegateSource to work around a bug
1 parent 644bc56 commit 24527bf

File tree

1 file changed

+1
-1
lines changed
  • swift/ql/lib/codeql/swift/frameworks/StandardLibrary

1 file changed

+1
-1
lines changed

swift/ql/lib/codeql/swift/frameworks/StandardLibrary/WebView.qll

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ private class AdoptsWkNavigationDelegate extends Decl {
5353
private class WKNavigationDelegateSource extends RemoteFlowSource {
5454
WKNavigationDelegateSource() {
5555
exists(ParamDecl p, FuncDecl f, AdoptsWkNavigationDelegate t |
56-
f.getEnclosingDecl() = t and
56+
t.getAMember() = f and
5757
f.getName() =
5858
[
5959
"webView(_:decidePolicyFor:preferences:decisionHandler:)",

0 commit comments

Comments
 (0)