brave / brave/adblock-rust

csp filter for document doesn't work

Open
#384 5 comments 1 reaction 0 assignees View on GitHub
Dominant language
Rust
Stars
2.8k
Forks
250
Avg merge
1d 16h
Merged PRs (30d)
6

Description

One of the two-folded issues in https://community.brave.com/t/web/561437
```
*$doc,csp=script-src-attr 'none',to=flatpanelshd.com|sportsrec.com|badmouth1.com|jin115.com|picrew.me|lamire.jp
||html-load.com/loader.min.js$domain=badmouth1.com|carscoops.com|dziennik.pl|eurointegration.com.ua|flatpanelshd.com|fourfourtwo.co.kr|jin115.com|lamire.jp|logicieleducatif.fr|mydaily.co.kr|picrew.me|reportera.co.kr|sportsrec.com|taxguru.in|thestar.co.uk|tweaksforgeeks.com|videogamemods.com|wfmz.com|yorkshirepost.co.uk|onlinegdb.com|text-compare.com
```

in uBlock filters doen't work.

Contributor guide

No contributing guide indexed for this repository

Research direction

Start by reproducing the two uBlock filter rules from the issue and verify how the CSP rule behaves on the listed domains. Trace the CSP-filter handling in adblock-rust, then add or update coverage for this case if an existing test entry point is found. Done means the document CSP filter is applied as intended without breaking the script rule.

Written by the indexing model from the issue text.

Assessment

Tech stack
rust
Domain
security
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.