mirror of
https://github.com/github/codeql.git
synced 2025-12-16 16:53:25 +01:00
javascript: Update property access for `document.defaultView as getAPropertyRead
Changed the method for accessing `defaultView` from `getAPropertyReference` to `getAPropertyRead` to improve accuracy in data flow analysis for global variable references.
This commit is contained in:
@@ -384,7 +384,7 @@ DataFlow::SourceNode globalObjectRef() {
|
||||
result = globalVariable("window")
|
||||
or
|
||||
// DOM alias via `document.defaultView`
|
||||
result = globalVariable("document").getAPropertyReference("defaultView")
|
||||
result = globalVariable("document").getAPropertyRead("defaultView")
|
||||
or
|
||||
// Node.js
|
||||
result = globalVariable("global")
|
||||
|
||||
Reference in New Issue
Block a user