Opened 2 years ago

Closed 2 years ago

Last modified 2 years ago

#6886 closed change (fixed)

Add support for looking up SnippetFilter objects for a domain

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

Description (last modified by hfiguiere)


The Snippets.getScriptsForDomain function returns the snippet scripts matching a given domain, which is enough for injecting code into a document but does not come with enough information for logging purposes (e.g. the entire filter text). There should be a Snippets.getFiltersForDomain that returns SnippetFilter objects instead.

What to change

Rename Snippets.getScriptsForDomain to Snippets.getFiltersForDomain and make it return SnippetFilter objects instead.

Update the tests accordingly.

Integration notes

This would require a change in adblockpluschrome, which is being done as part of #6843 anyway.

Hints for testers

Check that snippets filters still work. In the grand scheme of things verification of issue #6843 will probably include this.

Change History (7)

comment:1 Changed 2 years ago by mjethani

  • Owner set to hfiguiere

comment:2 Changed 2 years ago by mjethani

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

comment:3 Changed 2 years ago by hfiguiere

  • Blocking 6843 added

comment:4 Changed 2 years ago by abpbot

A commit referencing this issue has landed:
Issue 6886 - Return snippet filters instead of just scripts

comment:5 Changed 2 years ago by hfiguiere

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

comment:6 Changed 2 years ago by hfiguiere

  • Description modified (diff)

comment:7 Changed 2 years ago by Ross

  • Tester changed from Unknown to Ross
  • Verified working set

Done. Snippets still work and are logged to the devtools.

Firefox 62 / 51 / Windows 10
Chrome 69 / 49 / Windows 10
Opera 56 / 36 / Windows 10

Note: See TracTickets for help on using tickets.