JS: Track trusted type policy callbacks

This commit is contained in:
Asger F
2023-03-07 10:22:26 +01:00
parent 9b02eb729f
commit 0affd898de

View File

@@ -25,8 +25,7 @@ module TrustedTypes {
/** Gets the function passed as the given option. */
DataFlow::FunctionNode getPolicyCallback(string method) {
// Require local callback to avoid potential call/return mismatch in the uses below
result = getOptionArgument(1, method).getALocalSource()
result = getParameter(1).getMember(method).getAValueReachingSink()
}
}