diff --git a/assets/semgrep_rules/client/brave-execute-script.cpp b/assets/semgrep_rules/client/brave-execute-script.cpp index a6cef063..8ca635df 100644 --- a/assets/semgrep_rules/client/brave-execute-script.cpp +++ b/assets/semgrep_rules/client/brave-execute-script.cpp @@ -5,4 +5,6 @@ int main() { blink::WebScriptSource( blink::WebString::FromUTF16(foobar)), blink::BackForwardCacheAware::kAllow); + // ruleid: brave-execute-script + web_contents()->GetPrimaryMainFrame()->ExecuteJavaScript(k_script, base::NullCallback()); }