Skip to content

Commit

Permalink
Add a test
Browse files Browse the repository at this point in the history
  • Loading branch information
stoletheminerals committed Jul 1, 2024
1 parent 52c6482 commit c15b239
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions assets/semgrep_rules/client/brave-execute-script.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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());
}

0 comments on commit c15b239

Please sign in to comment.