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:
eliav
2025-11-17 01:05:58 +02:00
parent bd18e862eb
commit 8047450668

View File

@@ -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")