Merge pull request #5798 from erik-krogh/trackLoc

Approved by esbena
This commit is contained in:
CodeQL CI
2021-04-29 00:45:21 -07:00
committed by GitHub
3 changed files with 19 additions and 0 deletions

View File

@@ -469,6 +469,9 @@ module DOM {
t.start() and
result = locationSource()
or
t.startInProp("location") and
result = [DataFlow::globalObjectRef(), documentSource()]
or
exists(DataFlow::TypeTracker t2 | result = locationRef(t2).track(t2, t))
}