AdguardTeam / AdguardBrowserExtension

AdGuard browser extension
https://adguard.com/
GNU General Public License v3.0
3k stars 321 forks source link

Redirect rule causes a CSP error instead of redirecting #2913

Open alexx7311 opened 3 weeks ago

alexx7311 commented 3 weeks ago

Please answer the following questions for yourself before submitting an issue

AdGuard Extension version

4.4.18

Browser version

Chrome 127

OS version

Windows 11

Ad Blocking

AdGuard Base filter

Privacy

No response

Social

No response

Annoyances

No response

Security

No response

Other

No response

Language-specific

No response

What Tracking protection options do you have enabled?

No response

Issue Details

Steps to reproduce:

  1. Turn on the Base filter
  2. Go to any Spotify playlist on a free account (e.g. https://open.spotify.com/playlist/30ItA1hHyulAM5zsJnQuL4)
  3. Press Play and skip a few song for an ad to appear
Screenshot ![Screenshot](https://github.com/user-attachments/assets/724344fb-6e3b-468a-9a79-d1cb223fb56f)

Example of rules:

||media-us.amillionads.com/*.mp3$media,~xmlhttprequest,redirect=noopmp4-1s,domain=spotify.com
@@||media-us.amillionads.com/companion_images/$domain=open.spotify.com

Expected Behavior

No response

Actual Behavior

The ad is skipped but the player isn't working until you refresh the page.

Screenshots

Screenshot 1

Additional Information

No response

alexx7311 commented 3 weeks ago

Related issue(MV3): https://github.com/AdguardTeam/AdguardBrowserExtension/issues/2900

alexx7311 commented 2 weeks ago

Another case. STR:

  1. Enable Base filter and Russian filter
  2. Add this rule to the User rules: ||strm.yandex.*/get/$script,xmlhttprequest,other,redirect=noopvast-3.0,domain=yastatic.net|kinopoisk.ru|frontend.vh.yandex.*
  3. Go to https://www.kinopoisk.ru/film/5212124/ and open any video on the page
Screenshot ![Screenshot](https://github.com/user-attachments/assets/b20bc583-50e6-4af0-a341-e76230f76b4c)
Alex-302 commented 2 weeks ago

TODO: after relase the version with fix of $redirect rules, remove !+ NOT_PLATFORM(ext_chromium, ext_ff) hints in Spotify rules group or revert PR.