-
Notifications
You must be signed in to change notification settings - Fork 975
Allow adblock checking within the same origin #11005
Conversation
pls hold on reviewing, just adding some tests in another commit first. |
OK good to go. |
Codecov Report
@@ Coverage Diff @@
## master #11005 +/- ##
==========================================
- Coverage 54.69% 54.68% -0.01%
==========================================
Files 249 249
Lines 21895 21891 -4
Branches 3415 3415
==========================================
- Hits 11976 11972 -4
Misses 9919 9919
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this seems to break adops.com (regression of #1353)
Mentioned on Slack but this isn't meant to review all filtering list rules. Some won't work like the example you gave but it works the same as uBlock and other adblockers. We should fix cases like this, if we care about them, in our maintained lists on github.com/brave/adblock-lists |
@bbondy noted. in #1353 i asked whether this was an issue that should be fixed in the adblock module and you mentioned (#1353 (comment)) that we should add a check for first-partiness in app/adblock.js. so this appeared to be a regression |
Yep but things change in a year and a half. We don't have the same adblock library we had back then, we now have lists we maintain which we didn't then, and also we were consciously trying to not block first party things then. I'm going to re-open that one and fix with an adblock definition update. |
Fix #11004
Submitter Checklist:
git rebase -i
to squash commits (if needed).Test Plan:
Reviewer Checklist:
Tests