Opened 5 years ago

Last modified 4 years ago

#2392 closed change

Create a container for CSS property filters — at Initial Version

Reported by: trev Assignee:
Priority: P2 Milestone:
Module: Core Keywords:
Cc: Blocked By:
Blocking: #2389 Platform: Unknown
Ready: yes Confidential: no
Tester: Unknown Verified working: no
Review URL(s):

https://codereview.adblockplus.org/29324599/

Description

Background

The new filter class introduced in #2390 needs its own container with appropriate API.

What to change

Add cssRules.js module defining a CSSRules singleton. It should have the following methods:

  • add(filter)
  • remove(filter)
  • clear()
  • getRulesForDomain()

It should use appropriate data structures to make sure that getRulesForDomain() is efficient.

Change History (0)

Note: See TracTickets for help on using tickets.