Open Bug 1280030 Opened 8 years ago Updated 2 years ago

editing a filter with an action without argument produces JS warnings

Categories

(MailNews Core :: Filters, defect)

x86
Windows XP
defect

Tracking

(Not tracked)

People

(Reporter: aceman, Assigned: aceman)

Details

(Whiteboard: [filtermgmt])

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.
Severity: normal → minor
Whiteboard: [filtermgmt]
Severity: minor → S4
You need to log in before you can comment on or make changes to this bug.