github / github/codeql

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

未關閉
#9,541 1 則留言 0 個 reaction 已指派 1 人 已被 @asgerf 認領 在 GitHub 檢視
false-positive JS
主要語言
CodeQL
星號
10.1k
分支
2.1k
平均合併
2 天 15 小時
30 天內合併 PR
141

描述

**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.

貢獻指南

開啟貢獻指南

評估

這個 Issue 還沒有評估資料。

把新 issue 寄到你的電子郵件信箱

精選適合新手參與的 GitHub issue 摘要。