mirror of
https://github.com/github/codeql.git
synced 2026-04-28 02:05:14 +02:00
JS: Avoid redundant window.name sources
This commit is contained in:
@@ -211,7 +211,7 @@ private class WindowNameAccess extends RemoteFlowSource {
|
||||
this = DataFlow::globalObjectRef().getAPropertyRead("name")
|
||||
or
|
||||
// Reference to `name` on a container that does not assign to it.
|
||||
this.accessesGlobal("name") and
|
||||
this.asExpr().(GlobalVarAccess).getName() = "name" and
|
||||
not exists(VarDef def |
|
||||
def.getAVariable().(GlobalVariable).getName() = "name" and
|
||||
def.getContainer() = this.asExpr().getContainer()
|
||||
|
||||
Reference in New Issue
Block a user