Error ``menulist.selectedItem has no properties'' [xs] in file ``chrome://messenger/content/mailWidgets.xml'', line 1520, character 0.

VERIFIED FIXED in mozilla1.7alpha

Status

SeaMonkey
MailNews: Message Display
VERIFIED FIXED
14 years ago
13 years ago

People

(Reporter: timeless, Assigned: neil@parkwaycc.co.uk)

Tracking

Trunk
mozilla1.7alpha

Firefox Tracking Flags

(Not tracked)

Details

(Reporter)

Description

14 years ago
Error ``menulist.selectedItem has no properties'' [xs] in file
``chrome://messenger/content/mailWidgets.xml'', line 1520, character 0.
Stopped for error handler.
#0: function initialize(menulist=XULElement:{2}, bundle=XPComponent:{6}) in
<chrome://messenger/content/mailWidgets.xml> line 1520
1518:
1519: // to work around bug #78429
1520: menulist.setAttribute("label", menulist.selectedItem.getAttribute('label'));
1521: ]]>
1522: </body>

0001: menulist["selectedItem"]
$[1] = [null] null

What should the label be?
I cna do if (menulist.selectedItem) but ...
[Mozilla/5.0 (Windows; U; Win98; en-US; rv:1.6) Gecko/20040113] (W98SE)

Reproductible testcase:
1. Open MailNews
2. Select a folder
3. Tools > Search Messages...

The error(s) occurs during the dialog load !
{
Error: redeclaration of const MOZILLA_HELP
Source File: chrome://help/content/contextHelp.js
Line: 21

Error: menulist.selectedItem has no properties
Source File: chrome://messenger/content/mailWidgets.xml
Line: 1520
}
(The first error is a "new"(!) testcase for bug 162432 !)
Anyway, I don't know if one of them causes the other, but they do appear together !
Blocks: 162432
Keywords: testcase
(Assignee)

Comment 2

14 years ago
I don't see this on either of my trunk builds (1/1 or 19/1)...
[Mozilla/5.0 (Windows; U; Win98; en-US; rv:1.6b) Gecko/20031208] (W98SE)

Bug was already there in v1.6b
{
Error: redeclaration of const MOZILLA_HELP
Source File: chrome://help/content/contextHelp.js
Line: 21

Warning: redeclaration of var i
Source File: chrome://messenger/content/mailWidgets.xml
Line: 1002, Column: 21
Source Code:
            for (var i=0; i<ids.length; i++)

Error: menulist.selectedItem has no properties
Source File: chrome://messenger/content/mailWidgets.xml
Line: 1520
}
(I'm now in strict warning mode)
Re comment 2, based on v1.7a nighlies:

Well:
*E-|MOZILLA_HELP| is bug 162432... (as already noted)
*W-|var i| was fixed in bug 228501 ! (but not in v1.6)
*E-|menulist.selectedItem| was fixed in bug 227013 ! (but not in v1.6)
No longer blocks: 162432
Status: NEW → RESOLVED
Last Resolved: 14 years ago
Keywords: testcase
OS: Windows XP → All
Hardware: PC → All
Resolution: --- → FIXED
Target Milestone: --- → mozilla1.7alpha
(Assignee)

Comment 5

14 years ago
OK so strictly speaking this is a dup of 227013.
Status: RESOLVED → VERIFIED
Product: Browser → Seamonkey
You need to log in before you can comment on or make changes to this bug.