Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Exception rules in brave://adblock or regional lists are ignored #5440

Closed
pes10k opened this issue Jul 29, 2019 · 6 comments · Fixed by brave/brave-core#7666
Closed

Exception rules in brave://adblock or regional lists are ignored #5440

pes10k opened this issue Jul 29, 2019 · 6 comments · Fixed by brave/brave-core#7666
Assignees
Labels
feature/shields/adblock Blocking ads & trackers with Shields feature/shields The overall Shields feature in Brave. OS/Android Fixes related to Android browser functionality OS/Desktop priority/P3 The next thing for us to work on. It'll ride the trains. QA Pass - Android ARM QA Pass-Linux QA Pass-macOS QA Pass-Win64 QA/Yes release-notes/include

Comments

@pes10k
Copy link
Contributor

pes10k commented Jul 29, 2019

Currently exception rules added in brave://adblock and in regional lists are ignored, because of how filter logic is applied (main set of rules is queried, then regional, then custom, in order, until one of them has a match). This means an exception in a later list won't correctly except a rule from a previous set, and that important wont override an exception from a previous set.

@ryanbr
Copy link

ryanbr commented Jan 31, 2020

@antonok-edm do we have an update on this?

@pes10k
Copy link
Contributor Author

pes10k commented Jan 31, 2020

@antonok-edm isn't currently working on this, so we'll need to figure out internally whats best here.

I believe @bbondy and @AndriusA had a plan for tagging rules so that they could all be part of a single engine, of having the layered engines (which is what causes the issue). When either of you have a chance, could you say if the above (tag the rules) approach is still the official plan of action, and if so, if anyone is currently working on it (or if its in the backlog)?

@AndriusA
Copy link

the last I know of this is a conversation with @antonok-edm where we discussed a couple of approaches and their trade-offs and agreed that he'd post it up for discussion

@pes10k
Copy link
Contributor Author

pes10k commented Jan 31, 2020

@antonok-edm i know you're working on other things at the moment, but could you just update the issue here with where the conversation ended (if a conclusion was reached) and we'll figure out how best to go forward

@stephendonner
Copy link

stephendonner commented Feb 9, 2021

Verified FIXED using the testplan from brave/brave-core#7666 on

Brave 1.21.47 Chromium: 88.0.4324.152 (Official Build) beta (x86_64)
Revision 6579930fc53b4dc589c042bec9d0a3778326974d-refs/branch-heads/4324@{#2106}
OS macOS Version 11.2 (Build 20D64)

Case 1: defaults Shields settings, https://knowyourmeme.com - NO ad(s)

Screen Shot 2021-02-08 at 4 52 23 PM

Case 2: default Shields settings, https://knowyourmeme.com, added @@*$domain=knowyourmeme.com to the Custom Filters section in brave://adblock - 1 ad (bottom of the page)

Screen Shot 2021-02-08 at 4 50 47 PM

Verification passed on

Brave 1.21.56 Chromium: 88.0.4324.152 (Official Build) dev (64-bit)
Revision 6579930fc53b4dc589c042bec9d0a3778326974d-refs/branch-heads/4324@{#2106}
OS Ubuntu 18.04 LTS

Verified test plan from brave/brave-core#7666

Before custom rule After custom rule
image image

Verification passed on


Brave | 1.21.56 Chromium: 88.0.4324.152 (Official Build) dev (64-bit)
-- | --
Revision | 6579930fc53b4dc589c042bec9d0a3778326974d-refs/branch-heads/4324@{#2106}
OS | Windows 10 OS Version 2004 (Build 19041.804)

Verified test plan from brave/brave-core#7666

Before custom rule After custom rule
image image

@srirambv
Copy link
Contributor

Verification passed on OnePlus 6T with Android 10 running 1.21.64 x64 beta build

Default shields (no exception rule) Exception rule in chrome://adblock
image image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature/shields/adblock Blocking ads & trackers with Shields feature/shields The overall Shields feature in Brave. OS/Android Fixes related to Android browser functionality OS/Desktop priority/P3 The next thing for us to work on. It'll ride the trains. QA Pass - Android ARM QA Pass-Linux QA Pass-macOS QA Pass-Win64 QA/Yes release-notes/include
Projects
None yet
9 participants