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/
https://codereview.adblockplus.org/29965589/

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

  1. Navigate to ​https://testpages.adblockplus.org/en/filters/blocking
  2. Add the very first suggested filter ||testpages.adblockplus.org/testcasefiles/blocking/addresscomplete/image.jpg via the options page in the advanced tab
  3. Refresh page (image is blocked)
  4. Open the options page and navigate to the user-defined filters and delete the test filter
  5. Refresh the page (image is still blocked)
  6. 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:

  1. 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.
  2. Try all the keyword candidates and use the one that has the filter.
  3. Bring back the keyword-by-filter map.

Notes

Attachments (0)

Change History (5)

comment:1 Changed on 12/20/2018 at 11:02:21 AM by mjethani

  • Description modified (diff)

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

A commit referencing this issue has landed:
Issue 7181 - Keep a keyword-by-filter map after all

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

Add Comment

Modify Ticket

Change Properties
Action
as closed .
The resolution will be deleted. Next status will be 'reopened'.
to The owner will be changed from mjethani.
 
Note: See TracTickets for help on using tickets.