From c15b239aeceb823618b6f59d807267bc716f83d4 Mon Sep 17 00:00:00 2001 From: Artem Chaikin Date: Mon, 1 Jul 2024 16:57:26 +0100 Subject: [PATCH] Add a test --- assets/semgrep_rules/client/brave-execute-script.cpp | 2 ++ 1 file changed, 2 insertions(+) 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()); }