Opened 3 years ago

Closed 3 years ago

#5153 closed change (fixed)

Simplify patterns.ini parsing

Reported by: trev Assignee: trev
Priority: P2 Milestone:
Module: Adblock-Plus-for-Firefox Keywords:
Cc: Blocked By:
Blocking: #4128 Platform: Unknown / Cross platform
Ready: yes Confidential: no
Tester: Unknown Verified working: no
Review URL(s):

https://codereview.adblockplus.org/29416573/

Description (last modified by trev)

Background

In order to simplify the Emscripten implementation in #4128, we should change the current parsing and serialization logic.

What to change

  • Have exportData save subscriptions first and filters then. The current parsing code doesn't care due to our filter caching policy (a.k.a. memory leak), with Emscripten we will save an unnecessary reference to the filters when parsing.
  • Stop parsing [User patterns], [Pattern] and [Subscription patterns] sections, we stopped writing those a long time ago (around Adblock Plus 0.7).
  • Remove special treatment of ~fl~ and similar groups (again, this is compatibility with Adblock Plus 0.7 era).
  • Remove silent parameter from FilterStorage.addFilter(), FilterStorage.addSubscription() and FilterStorage.removeSubscription() - only the former was still being used, and the last usage of that parameter is being removed now.
  • Bump formatVersion property.

Change History (5)

comment:1 Changed 3 years ago by trev

  • Description modified (diff)

comment:2 Changed 3 years ago by trev

  • Description modified (diff)

comment:3 Changed 3 years ago by trev

  • Review URL(s) modified (diff)
  • Status changed from new to reviewing

comment:4 Changed 3 years ago by abpbot

A commit referencing this issue has landed:
Issue 5153 - Simplify patterns.ini parsing

comment:5 Changed 3 years ago by trev

  • Resolution set to fixed
  • Status changed from reviewing to closed
Note: See TracTickets for help on using tickets.