Opened on 06/06/2018 at 03:41:20 PM

Closed on 06/19/2018 at 09:14:03 AM

Last modified on 09/30/2018 at 09:41:33 AM

#6735 closed change (fixed)

Store domains in lower case

Reported by: mjethani Assignee: mjethani
Priority: P2 Milestone:
Module: Core Keywords:
Cc: sergz, kzar Blocked By:
Blocking: #7000 Platform: Unknown / Cross platform
Ready: yes Confidential: no
Tester: Ross Verified working: yes
Review URL(s):

Description (last modified by mjethani)


Domain names are typically represented in lower case, both in filter lists and as reported by the browser. But the filter classes store the domain names in upper case. The conversion from lower case to upper case creates an additional string that would not otherwise be necessary.

According to my tests, if the filter classes store domain names in lower case instead, it saves ~2 MB on the JS heap with the default subscriptions.

What to change

In the RegExpFilter.fromText implementation, convert the value of the domain option to lower case rather than upper case. Update the names of related properties and the documentation accordingly.

Hints for testers

Test that filters with upper case or mixed case domains work correctly. For example,, should apply on but not on

Attachments (0)

Change History (8)

comment:1 Changed on 06/06/2018 at 03:42:13 PM by mjethani

  • Review URL(s) modified (diff)

comment:2 Changed on 06/07/2018 at 10:27:47 AM by mjethani

  • Priority changed from Unknown to P2
  • Ready set
  • Status changed from new to reviewing

comment:3 Changed on 06/19/2018 at 09:13:05 AM by abpbot

A commit referencing this issue has landed:
Issue 6735 - Store domains in lower case

comment:4 Changed on 06/19/2018 at 09:14:03 AM by mjethani

  • Resolution set to fixed
  • Status changed from reviewing to closed

comment:5 Changed on 07/20/2018 at 11:47:43 AM by mjethani

  • Description modified (diff)

comment:6 Changed on 07/20/2018 at 03:04:31 PM by mjethani

  • Description modified (diff)

comment:7 Changed on 08/21/2018 at 11:34:20 AM by Ross

  • Tester changed from Unknown to Ross
  • Verified working set

Working as described.

Chrome 68 / 55 / 49 / Windows 10
Firefox 61 / 55 / 51 / Windows 10

comment:8 Changed on 09/30/2018 at 09:41:33 AM by mjethani

  • Blocking 7000 added

Add Comment

Modify Ticket

Change Properties
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.