Closed
Bug 68525
Opened 24 years ago
Closed 21 years ago
javascript strict warnings in mailWindowOverlay.js
Categories
(SeaMonkey :: MailNews: Message Display, defect)
SeaMonkey
MailNews: Message Display
Tracking
(Not tracked)
RESOLVED
FIXED
People
(Reporter: bugzilla, Assigned: ssu0262)
References
Details
Attachments
(3 obsolete files)
JavaScript strict warning:
chrome://messenger/content/mailWindowOverlay.js line 381: assignment to undeclar
ed variable destUri
JavaScript strict warning:
chrome://messenger/content/mailWindowOverlay.js line 382: assignment to undeclar
ed variable destResource
JavaScript strict warning:
chrome://messenger/content/mailWindowOverlay.js line 383: assignment to undeclar
ed variable destMsgFolder
Comment 1•24 years ago
|
||
Taking from sspitzer, I've got a patch coming up...
Assignee: sspitzer → hwaara
Whiteboard: fix in hand
Comment 2•24 years ago
|
||
Comment 4•24 years ago
|
||
Seth, please sr= these small changes. Thanks!
Comment 5•24 years ago
|
||
sr=alecf
Comment 6•24 years ago
|
||
sorry for the delay.
thanks for helping me out, alecf.
these changes look good. I'll land them today.
Reporter | ||
Comment 8•24 years ago
|
||
Why are these suddenly seen again in build 2001032508 ?
JavaScript strict warning:
chrome://messenger/content/mailWindowOverlay.js line 447: assignment to undeclar
ed variable destUri
JavaScript strict warning:
chrome://messenger/content/mailWindowOverlay.js line 448: assignment to undeclar
ed variable destResource
JavaScript strict warning:
chrome://messenger/content/mailWindowOverlay.js line 449: assignment to undeclar
ed variable destMsgFolder
Status: RESOLVED → REOPENED
Resolution: FIXED → ---
Comment 9•24 years ago
|
||
Comment 10•24 years ago
|
||
sr=sspitzer
the original fix must have changes must have gotten stomped by the mailnews perf
branch landing.
Comment 11•24 years ago
|
||
need r= to checkin...
Comment 12•24 years ago
|
||
r=timeless
Updated•24 years ago
|
Status: REOPENED → RESOLVED
Closed: 24 years ago → 24 years ago
Resolution: --- → FIXED
Whiteboard: fix in hand
Comment 13•24 years ago
|
||
Fix checked in.
Where am I supposed to see these errors? I looked at hwaara's first patch,
looks like if I copy message and move messages, correct?
I copied and moved 5 messages to both local folders and IMAP folders, didn't see
any warnings. If that's the case, then I can mark this verified, just let me
know, thanks.
verified.
Status: RESOLVED → VERIFIED
Reporter | ||
Comment 17•24 years ago
|
||
Whenever there is new functionality there's new js warnings!
Please add the following line to your prefs.js file, so we could avoid all the
strict warning fixup...:
user_pref("javascript.options.strict", true);
Build 20010708:
Warning: redeclaration of var folder
Source File: chrome://messenger/content/mailWindowOverlay.js
Line: 467, Column: 10
Warning: function PromptGetMessagesOffline does not always return a value
Source File: chrome://messenger/content/mailWindowOverlay.js
Line: 1199
Warning: function PromptSendMessagesOffline does not always return a value
Source File: chrome://messenger/content/mailWindowOverlay.js
Line: 1219
Comment 18•24 years ago
|
||
It's a simple fix, but I'm tired of cleaning after others.
Mohan's big patch caused this. Reassign.
Assignee: hwaara → mohanb
Status: REOPENED → NEW
Assignee | ||
Comment 21•23 years ago
|
||
Comment on attachment 46660 [details] [diff] [review]
(Bv1)
r=ssu for stephend's patch
Attachment #46660 -
Flags: review+
Comment on attachment 46660 [details] [diff] [review]
(Bv1)
>Index: mailWindowOverlay.js
>===================================================================
>RCS file: /cvsroot/mozilla/mailnews/base/resources/content/mailWindowOverlay.js,v
>retrieving revision 1.81
>diff -u -r1.81 mailWindowOverlay.js
>--- mailWindowOverlay.js 2001/08/15 05:07:10 1.81
>+++ mailWindowOverlay.js 2001/08/21 21:59:24
>@@ -432,6 +432,7 @@
> GetMessagesForAllAuthenticatedAccounts();
> }
> }
>+ return true;
I don't trust my returns on this.
> }
>
> /**
>@@ -463,7 +464,7 @@
> function MsgGetNextNMessages()
> {
> if(CheckOnline()) {
>- var folder = GetFirstSelectedMsgFolder();
>+ folder = GetFirstSelectedMsgFolder();
This is already fixed in the trunk.
> if(folder)
> GetNextNMessages(folder);
> }
>@@ -1250,6 +1251,7 @@
> return buttonPressed.value;
> }
> }
>+ return true;
I don't trust my return on this, either.
> }
>
> function GetFolderMessages()
Attachment #46660 -
Attachment is obsolete: true
Attachment #46660 -
Flags: review+
Comment 23•23 years ago
|
||
Here's some more:
Warning: reference to undefined property
Components.classes['@mozilla.org;timeline-service;1']
Source File: chrome://messenger/content/mailWindowOverlay.js
Line: 34
Error: Components.classes['@mozilla.org;timeline-service;1'] has no properties
Source File: chrome://messenger/content/mailWindowOverlay.js
Line: 34
Oliver, the timeline warnings are bug 119250...
Reporter | ||
Comment 25•23 years ago
|
||
*** Bug 119250 has been marked as a duplicate of this bug. ***
Reporter | ||
Comment 26•23 years ago
|
||
in 20020326 we have:
Warning: function PromptGetMessagesOffline does not always return a value
Source File: chrome://messenger/content/mailWindowOverlay.js
Line: 1448
Source Code:
}
Warning: function PromptSendMessagesOffline does not always return a value
Source File: chrome://messenger/content/mailWindowOverlay.js
Line: 1468
Source Code:
}
Updated•23 years ago
|
Attachment #28791 -
Attachment is obsolete: true
Updated•23 years ago
|
Attachment #25027 -
Attachment is obsolete: true
Updated•21 years ago
|
Attachment #25027 -
Attachment description: [Patch] Fixing the errors this bug's about, but also some other errors I spotted and some general code cleanup. → [Patch] Fixing the errors this bug's about, but also some other errors I spotted and some general code cleanup.
[Checked in: Comment 7]
Updated•21 years ago
|
Attachment #28791 -
Attachment description: fix for the new errors. please r=, sr= → fix for the new errors. please r=, sr=
[Checked in: Comment 13]
Updated•21 years ago
|
Attachment #25027 -
Attachment description: [Patch] Fixing the errors this bug's about, but also some other errors I spotted and some general code cleanup.
[Checked in: Comment 7] → (Av1) Fixing the errors this bug's about, but also some other errors I spotted and some general code cleanup.
[Checked in: Comment 7]
Updated•21 years ago
|
Attachment #28791 -
Attachment description: fix for the new errors. please r=, sr=
[Checked in: Comment 13] → (Av2) fix for the new errors. please r=, sr=
[Checked in: Comment 13]
Comment 27•21 years ago
|
||
Comment on attachment 46660 [details] [diff] [review]
(Bv1)
The |folder| warning was bug 100906...
The "return a value" warnings were fixed by bug 128905.
Attachment #46660 -
Attachment description: Patch → (Bv1)
Updated•21 years ago
|
Status: NEW → RESOLVED
Closed: 24 years ago → 21 years ago
Resolution: --- → FIXED
Updated•20 years ago
|
Product: Browser → Seamonkey
You need to log in
before you can comment on or make changes to this bug.
Description
•