Empty filter list table initialized if filter list header is added as the first filter
Steps to reproduce
- Open Advanced tab in desktop settings page.
- Make sure there are no filters in the Custom Filters Table- otherwise delete them and refresh the page. Only the input field should be present, no table.
- Try to add a filter list header, for example:
[adblock]
-
Observe: after clicking ADD button, an empty Custom filters table is shown &
invalid filter
error is thrown in the console
Expand for .gif of the issue
Environment
- Release 2018-5.2
- browser independent
Expected behavior
- Filter list header is silently ignored (input field empties after clicking the 'ADD' button)
- No errors in the console
- Filter list table not initialized