File tree Expand file tree Collapse file tree 1 file changed +5
-1
lines changed
javascript/ql/lib/semmle/javascript/security/dataflow Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Original file line number Diff line number Diff 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" )
You can’t perform that action at this time.
0 commit comments