editing a filter with an action without argument produces JS warnings

NEW
Assigned to

Status

MailNews Core
Filters
--
minor
2 years ago
9 months ago

People

(Reporter: aceman, Assigned: aceman)

Tracking

Trunk
x86
Windows XP

Firefox Tracking Flags

(Not tracked)

Details

(Whiteboard: [filtermgmt])

(Assignee)

Description

2 years ago
STR:
1. create a filter with any rules
2. make a single action "Add star"
3. save the filter
4. edit is again
5. switch the action to "set junk status to"
Error in browser console:
TypeError: actionItem is null
saveToFilter()searchWidgets.xml:515
_checkActionsReorder()FilterEditor.js:541
onEditFilter()FilterListDialog.js:329
oncommand()FilterListDialog.xul:1
searchWidgets.xml:515:17

6. do not save the filter and reopen it
7. switch the "add star" action to "Tag message"
Error in Browser console:
ReferenceError: reference to undefined property this.mSelectedInternal menulist.xml:200:13

8. reopen and try "Move to folder"
Error:
TypeError: actionItem is null
saveToFilter()searchWidgets.xml:512
_checkActionsReorder()FilterEditor.js:541
onEditFilter()FilterListDialog.js:329
oncommand()FilterListDialog.xul:1 searchWidgets.xml:512:17

9. reopen and try "set priority to":
TypeError: actionItem is null
saveToFilter()searchWidgets.xml:508
_checkActionsReorder()FilterEditor.js:541
onEditFilter()FilterListDialog.js:329
oncommand()FilterListDialog.xul:1
 searchWidgets.xml:508:17

It seems there are problems when switching from an action without arguments (in form of a menulist) to an action with a menulist. But the Forward/Reply actions do not have the problem, even with menulist.

I don't know if this is a new change, or the Browser console shows more errors.

Updated

9 months ago
Severity: normal → minor
Whiteboard: [filtermgmt]
You need to log in before you can comment on or make changes to this bug.