Closed Bug 195733 Opened 21 years ago Closed 21 years ago

In <chrome://messenger/content/commandglue.js>, "Error: redeclaration of const MSG_FOLDER_FLAG_TRASH"; (when opening Mail & Newsgroups)

Categories

(SeaMonkey :: MailNews: Message Display, defect)

defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: mozilla, Assigned: mnyromyr)

References

Details

(Keywords: fixed1.4.1)

Attachments

(1 file)

User-Agent:       Mozilla/5.0 (Macintosh; U; PPC Mac OS X Mach-O; da-DK; rv:1.4a; MultiZilla v1.3.1 (e)) Gecko/20030228
Build Identifier: Mozilla/5.0 (Macintosh; U; PPC Mac OS X Mach-O; da-DK; rv:1.4a; MultiZilla v1.3.1 (e)) Gecko/20030228

Error: redeclaration of const MSG_FOLDER_FLAG_TRASH
Source File: chrome://messenger/content/commandglue.js
Line: 1

Error: popup has no properties
Source File: chrome://messenger/content/mailNavigatorOverlay.xul
Line: 89

Reproducible: Always

Steps to Reproduce:
1. Open the javascript console
2. Open mail/news


Actual Results:  
I'm getting those two javascript errors every time
The first one is also present in 2003-28/2-03
The last one is new to 2003-28/2-11
*** Bug 197703 has been marked as a duplicate of this bug. ***
OS: MacOS X → All
Hardware: Macintosh → All
Summary: [MachO] javascript errors when opening mail/news → javascript errors when opening mail/news
[Mozilla/5.0 (Windows; U; Win95; en-US; rv:1.3) Gecko/20030312]

I suggest to add at least the name of the two involved files in the Summary:
I would not have filed a dupe :-(

"Confirmation" of 'Actual Results' from the Description:
I had only the redeclaration error. (see my duped bug 197703)
[Mozilla/5.0 (Windows; U; Win95; en-US; rv:1.3) Gecko/20030312]

Update to my duped bug 197703, and confirmation of the current bug:

*Reproductible: Allways

*Steps to reproduce:
1. Open Mail & Newsgroups
[Mozilla/5.0 (Windows; U; Win95; en-US; rv:1.4a) Gecko/20030401]

Bug (see comment 2 and 3) still there. (with v1.3 profile, at least)

Reporter: Can you check if the second error still appears for you with v1.4a final ?
I suggest to change the summary to:

In <chrome://messenger/content/commandglue.js>, "Error: redeclaration of const
MSG_FOLDER_FLAG_TRASH"

And to add the second error when it is confirmed.
using : Mozilla/5.0  Gecko/20030401
(Macintosh; U; PPC Mac OS X Mach-O; da-DK; rv:1.4a; MultiZilla v1.4.0.4A) 

the command.glue error is still present
the mailNavigatorOverlay.xul error is gone

sorry being a little late in answering - I've been awaiting a release of
MultiZilla for 1.4a before testing ;-)
Summary: javascript errors when opening mail/news → In <chrome://messenger/content/commandglue.js>, "Error: redeclaration of const MSG_FOLDER_FLAG_TRASH"; (when opening Mail & Newsgroups)
[Mozilla/5.0 (Windows; U; Win95; en-US; rv:1.4b) Gecko/20030507]

Bug still there. (with v1.3 profile, at least)
const MSG_FOLDER_FLAG_TRASH is defined in commandglue.js.
commandglue.js is used in several XUL files, which are all window/page/dialog -
except mailWindowOverlay.xul, which is an overlay.
mailWindowOverlay.xul OTOH is only included by several of the above XULs, hence
the error.
I'll attach a patch.
This patch removes the inclusion of commandglue.js in mailWindowOverlay.xul,
because each xul using mailWindowOverlay.xul does already include
commandglue.js.

(mailWindowOverlay.xul's license is still NPL, should/could that be changed to
the MPL-Tri-license?)

Seth, shall I look for reviews? By you, actually? ;-)
[Mozilla/5.0 (Windows; U; Win95; en-US; rv:1.4) Gecko/20030529]

Bug still there (v1.4rc1).

***

Re comment 9:

After 10 days of inactivity,
Can anyone try again to push/help a little harder to review/land this patch
(before v1.4) !?

Thanks.
Attachment #124614 - Flags: review?(sspitzer)
*** Bug 209757 has been marked as a duplicate of this bug. ***
A clarification to comment 8:

commandglue.js is included by
+- ABSearchDialog.xul            (=window)
+- mail3PaneWindowVertLayout.xul (=window)
+- messageWindow.xul             (=window)
+- messenger.xul                 (=window)
+- SearchDialog.xul              (=window)
+- msgAccountCentral.xul         (=page)
+- msgSelectOffline.xul          (=dialog)
+- mailWindowOverlay.xul         (=overlay) is included by 
   +- ABSearchDialog.xul
   +- mail3PaneWindowVertLayout.xul
   +- messageWindow.xul
   +- messenger.xul

So the inclusion of commandglue.js in mailWindowOverlay.xul is superfluous and
causing the error.
Attachment #124614 - Flags: review?(sspitzer) → review?(neil.parkwaycc.co.uk)
Attachment #124614 - Flags: superreview?(dmose)
Attachment #124614 - Flags: review?(neil.parkwaycc.co.uk)
Attachment #124614 - Flags: review+
Comment on attachment 124614 [details] [diff] [review]
small patch to get rid of the MSG_FOLDER_FLAG_TRASH error

sr=dmose
Attachment #124614 - Flags: superreview?(dmose) → superreview+
Attachment #124614 - Flags: approval1.4?
Not this bug exactly,
but there is 2 other very similar bugs: bug 162432 and bug 195241.

Could someone check them (like comment 12) and possibly come up with a similar
solution ?

(Thanks.)
stealing bug to make visible who's to blame
Status: NEW → ASSIGNED
stealing bug to make visible who's to blame
Assignee: sspitzer → kd-moz
Status: ASSIGNED → NEW
Fixed checked in.
Status: NEW → RESOLVED
Closed: 21 years ago
Resolution: --- → FIXED
Comment on attachment 124614 [details] [diff] [review]
small patch to get rid of the MSG_FOLDER_FLAG_TRASH error

moving approval request forward.
Attachment #124614 - Flags: approval1.4? → approval1.4.x?
Comment on attachment 124614 [details] [diff] [review]
small patch to get rid of the MSG_FOLDER_FLAG_TRASH error

a=mkaply for 1.4.1
Attachment #124614 - Flags: approval1.4.x? → approval1.4.x+
Please add fixed1.4.1 keyword when checked in.
Flags: blocking1.4.x+
Keywords: fixed1.4.1
[Mozilla/5.0 (Windows; U; Win98; en-US; rv:1.6a) Gecko/20031030] (BuildId=0...0,
bug 224340#c9) (W98SE)

[Mozilla/5.0 (Windows; U; Win98; en-US; rv:1.5) Gecko/20031007] (W98SE)

(as a user) Verified fixed on Trunk (for both).
Blocks: 224532
Product: Browser → Seamonkey
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: