AdguardTeam / AdGuardMV3

AdGuard browser extension prototype based on the new Manifest V3
https://adguard.com/
GNU General Public License v3.0
143 stars 13 forks source link

$csp rule works as a regular rule #6

Closed Sergey-Lyapin closed 1 year ago

Sergey-Lyapin commented 1 year ago

The manifest_v3 extension with the only base filter enabled breaks 1337x.to

Screenshot

I guess it's because of the rule ||1337x.to^$csp=script-src 'self' 'unsafe-inline' 'unsafe-eval' data:

@@||1337x.to^$urlblock added to user rules fixes the issue.

The original issue

Yuki2718 commented 1 year ago

https://github.com/AdguardTeam/AdGuardMV3/issues/4 is the same, EL has $csp=worker-src 'none',domain=hitomi.la and @@||hitomi.la^$urlblock fixes the breakage.

105th commented 1 year ago

In fact, this is because the current version of the V3 extension does not support the $csp modifier at all. We are currently working on describing these limitations

ameshkov commented 1 year ago

@105th note, that this is really important to have a list of supported modifiers. We mustn't attempt to convert a rule with a modifier not from that list.