We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8be6aed commit 892beeaCopy full SHA for 892beea
swift/ql/test/library-tests/dataflow/taint/libraries/webview.swift
@@ -76,7 +76,7 @@ struct URLRequest {}
76
77
// --- tests ---
78
79
-func source() -> Any { return "" }
+func source(_ label: String? = "") -> Any { return "" }
80
func sink(_: Any) {}
81
82
func testInheritBodyTaint() {
@@ -146,6 +146,9 @@ func testWKUserScript() {
146
}
147
148
func testWKNavigationAction() {
149
- let src = source() as! WKNavigationAction
150
- sink(src.request) // $ tainted=149
151
-}
+ let src = source("WKNavigationAction") as! WKNavigationAction
+ sink(src.request) // $ tainted=WKNavigationAction
+
152
+ let keypath = \WKNavigationAction.request
153
+ sink(src[keyPath: keypath]) // $ MISSING: tainted=WKNavigationAction
154
+}
0 commit comments