Opened 5 years ago

Closed 5 years ago

Last modified 4 years ago

#3763 closed change (fixed)

Get rid of redundant "add-filters" message type

Reported by: sebastian Assignee: sebastian
Priority: P3 Milestone: Adblock-Plus-1.12-for-Chrome-Opera-Safari
Module: Platform Keywords:
Cc: Blocked By: #3761
Blocking: Platform: Unknown / Cross platform
Ready: yes Confidential: no
Tester: Ross Verified working: yes
Review URL(s):

Description (last modified by sebastian)


The add-filters message type is used by the "Block element" dialog in order to validate a newline-separated block of filters using the filterValidation module, and saves the filters if all of them are valid, responding with an error otherwise.

This logic was mostly redundant with the filters.rawImport message type in messageResponser.js from adblockplusui. However, we couldn't use it before as it didn't send a response when the filter was successfully added, but it sent only a message when an error occurred. This however got fixed with #3761.

What to change

  • Update the adblockplusui dependency to the latest revision including #3761
  • Use filters.rawImport instead add-filters for the "Block element" dialog (block.html)
  • Remove the logic to handle add-filters messages

Hints for testers

Make sure that filters added with the "Block element" dialog (availaable from the icon menu and context menu) are saved correctly. Also make sure that filter validation is applied as described here.

Change History (6)

comment:1 Changed 5 years ago by sebastian

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

comment:2 Changed 5 years ago by sebastian

  • Description modified (diff)

comment:3 Changed 5 years ago by abpbot

A commit referencing this issue has landed:

comment:4 Changed 5 years ago by sebastian

  • Milestone set to Adblock-Plus-for-Chrome-Opera-Safari-next
  • Resolution set to fixed
  • Status changed from reviewing to closed

comment:5 Changed 5 years ago by sebastian

  • Description modified (diff)

comment:6 Changed 4 years ago by Ross

  • Tester changed from Unknown to Ross
  • Verified working set

Chrome 32 / 44 / 48 / Windows 8
Opera 24 / 28 / Windows 8
Chrome 44 / Ubuntu 14.04
Safari 6 / 8 / 9 / OS X 10.8 / 10.10 / 10.11

Note: See TracTickets for help on using tickets.