Skip to content

Commit ed58ee8

Browse files
author
bananabr
committed
documented getSelectionCall
1 parent 57ae070 commit ed58ee8

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

javascript/ql/lib/semmle/javascript/security/dataflow/XssThroughDomCustomizations.qll

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -219,7 +219,7 @@ module XssThroughDom {
219219

220220

221221
/**
222-
* A source for text from the DOM from a Selection object toString method call
222+
* A call to window.getSelection
223223
* https://developer.mozilla.org/en-US/docs/Web/API/Selection
224224
*/
225225
DataFlow::SourceNode getSelectionCall(DataFlow::TypeTracker t) {
@@ -233,6 +233,10 @@ module XssThroughDom {
233233
exists(DataFlow::TypeTracker t2 | result = getSelectionCall(t2).track(t2, t))
234234
}
235235

236+
/**
237+
* A source for text from the DOM from a Selection object toString method call
238+
* https://developer.mozilla.org/en-US/docs/Web/API/Selection
239+
*/
236240
class SelectionSource extends Source {
237241
SelectionSource() {
238242
this = getSelectionCall(DataFlow::TypeTracker::end()).getAMethodCall("toString")

0 commit comments

Comments
 (0)