github / github/codeql

LGTM.com - false positive - js/unvalidated-message-origin wrongly detects window.chrome.webview.addEventListener('message' ...

Aperta
#9,541 1 commento 0 reazioni 1 assegnatario Rivendicata da @asgerf Vedi su GitHub
false-positive JS
Lingua principale
CodeQL
Stelle
10.1k
Fork
2.1k
Merge medio
2g 15h
PR unite (30g)
141

Descrizione

**Description of the false positive**

Microsoft's webview2 provides a `window.chrome.webview` object which supports a "message" event for receiving messages from the host application. This is not the same as the `window` "message" event, and the event object doesn't support an `origin` property, but js/unvalidated-message-origin wrongly flags it.

**URL to the alert on the project page on LGTM.com**

This alert is not in a project that's on LGTM.com.

Guida per i contributori

Apri la guida per i contributori

Valutazione

Questa issue non è ancora stata valutata.

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.