Opened 2 years ago

Last modified 2 years ago

#6417 closed defect

empty error message for incorrect custom filters — at Version 6

Reported by: mapx Assignee:
Priority: P2 Milestone: Adblock-Plus-3.0.3-for-Chrome-Opera-Firefox
Module: Platform Keywords:
Cc: kzar, mjethani, greiner Blocked By:
Blocking: Platform: Unknown / Cross platform
Ready: yes Confidential: no
Tester: Ross Verified working: yes
Review URL(s):

Description (last modified by greiner)


ABP last dev build (FF / chrome)
FF beta / chrome beta
windows 7 / windows 10

Ubuntu 17.10
Chrome 64
Adblock Plus

How to reproduce

Add the custom filter @@||^$first-party

Observed behaviour

Modal dialog opens displaying only the row number of the incorrect filter, no error message.

Further information

We use Utils.getString() in lib/filterValidation.js to retrieve the error message for the given error reason. However, unlike browser.i18n.getMessage() it returns an empty string instead.

Change History (7)

comment:1 Changed 2 years ago by mapx

  • Cc greiner added

comment:2 Changed 2 years ago by mapx

  • Component changed from Platform to User-Interface

comment:3 Changed 2 years ago by greiner

I wasn't able to reproduce this by adding the filter [ in the custom filter list. The filter is simply not added and no error message is shown (that's because #5549 is not included in this release yet).

Ubuntu 17.10
Chrome 64
Adblock Plus

Which filter did you use to trigger that message?

Changed 2 years ago by mapx

comment:4 Changed 2 years ago by mapx


which obviously is not accepted by ABP (windows 7 / windows 10)

see attachment

Last edited 2 years ago by mapx (previous) (diff)

comment:5 Changed 2 years ago by mapx

  • Description modified (diff)

comment:6 Changed 2 years ago by greiner

  • Component changed from User-Interface to Platform
  • Description modified (diff)

Thanks. I was able to reproduce it with this filter and identify what's causing this issue.

Note: See TracTickets for help on using tickets.