Opened on 12/20/2018 at 09:54:21 AM
Closed on 12/20/2018 at 11:13:57 AM
Last modified on 02/07/2019 at 03:23:59 AM
#7181 closed defect (fixed)
Custom filters sometimes persist after they have been removed
Reported by: | kzar | Assignee: | mjethani |
---|---|---|---|
Priority: | Unknown | Milestone: | |
Module: | Core | Keywords: | |
Cc: | mjethani, jsonesen, Ross, sebastian | Blocked By: | |
Blocking: | #7054 | Platform: | Unknown / Cross platform |
Ready: | no | Confidential: | no |
Tester: | Unknown | Verified working: | no |
Review URL(s): |
https://codereview.adblockplus.org/29965585/ |
Description (last modified by mjethani)
Environment
Adblock Plus built using the next branch of the adblockpluscore ( 699451fe09c5). (See the code review of #7054 to see the required changes to adblockpluschrome.)
How to reproduce
- Navigate to https://testpages.adblockplus.org/en/filters/blocking
- Add the very first suggested filter ||testpages.adblockplus.org/testcasefiles/blocking/addresscomplete/image.jpg via the options page in the advanced tab
- Refresh page (image is blocked)
- Open the options page and navigate to the user-defined filters and delete the test filter
- Refresh the page (image is still blocked)
- Open the Adblock Plus DevTools panel (the image filter still shows as an unnamed subscription)
Observed behaviour
Image is still blocked after the filter is removed and the page is refreshed.
Our developer tools pane still lists the image filter, but with an unamed subscription.
Expected behaviour
The image is no longer blocked after the filter is removed and the page is refreshed.
The filter is no longer listed.
What to change
We have three options:
- Make the keyword finding for a filter deterministic. This would make the data structures unbalanced so that some keywords may end up with more than their share of filters.
- Try all the keyword candidates and use the one that has the filter.
- Bring back the keyword-by-filter map.
Notes
- The regression was caused by this change 30daf36221f1 (#6992).
- The reason the filter is not removed is that the keyword while adding the filter is "addresscomplete" but the keyword while removing the filter is "testcasefiles".
- Jon spotted this regression initially, then Manish wrote up the details in a comment which I based this issue on.
Attachments (0)
Change History (5)
comment:2 Changed on 12/20/2018 at 11:06:10 AM by mjethani
- Status changed from new to reviewing
comment:3 Changed on 12/20/2018 at 11:12:32 AM by abpbot
comment:4 Changed on 12/20/2018 at 11:13:57 AM by mjethani
- Resolution set to fixed
- Status changed from reviewing to closed
comment:5 Changed on 02/07/2019 at 03:23:59 AM by abpbot
A commit referencing this issue has landed:
Issue 7181 - Keep a keyword-by-filter map after all
A commit referencing this issue has landed:
Issue 7181 - Keep a keyword-by-filter map after all