Closed
Bug 60649
Opened 25 years ago
Closed 16 years ago
javascript strict warnings in AccountWizard.js
Categories
(MailNews Core :: Account Manager, defect)
MailNews Core
Account Manager
Tracking
(Not tracked)
RESOLVED
FIXED
Thunderbird 3.1b1
People
(Reporter: bugzilla, Assigned: sgautherie)
References
Details
Attachments
(1 file, 2 obsolete files)
|
2.83 KB,
patch
|
Bienvenu
:
review+
Bienvenu
:
superreview+
|
Details | Diff | Splinter Review |
chrome://messenger/content/AccountWizard.js line 62: trailing comma is not legal
in ECMA-262 object initializers
JavaScript strict warning:
chrome://messenger/content/AccountWizard.js line 321: redeclaration of var
server
JavaScript strict warning:
chrome://messenger/content/AccountWizard.js line 484: function
verifyLocalFoldersAccount does not always return a value
JavaScript strict warning:
chrome://messenger/content/AccountWizard.js line 486: function
verifyLocalFoldersAccount does not always return a value
JavaScript strict warning:
chrome://messenger/content/AccountWizard.js line 91: assignment to undeclared
variable wizardManager
JavaScript strict warning:
chrome://messenger/content/AccountWizard.js line 679: reference to undefined
property pageData.accounttype
Comment 1•25 years ago
|
||
mass re-assign of account manager bugs to racham.
Assignee: sspitzer → racham
When you fix this, can someone verify, thanks!
Comment 3•25 years ago
|
||
I found that on this line:
http://lxr.mozilla.org/seamonkey/source/mailnews/base/prefs/resources/content/AccountWizard.js#358
the variable 'server' is created two times, and assigned different things. This
might be very bad.
QA Contact: esther → stephend
QA Contact: stephend → gemal
| Reporter | ||
Comment 4•25 years ago
|
||
adding steps to reproduce:
1) Set user_pref("javascript.options.strict", true); in your prefs.js file
2) Edit -> "Mail/News Account Settings" -> New Account
| Reporter | ||
Comment 5•25 years ago
|
||
If I produces patched for this bug can I then trust that someone will help me to
get r, sr and checkin? I produced quite a few patches that just still sits
around and are now out of date...:(
function createAccount(accountData)
{
var server = accountData.incomingServer;
dump("am.createIncomingServer(" + server.username + "," +
server.hostName + "," +
server.type + ")\n");
var server = am.createIncomingServer(server.username,
server.hostName,
server.type);
Yeah, that is strange code, indeed. Bhuvan, can you add insight?
Updated•21 years ago
|
Product: Browser → Seamonkey
Updated•21 years ago
|
Assignee: sspitzer → mail
| Assignee | ||
Comment 8•21 years ago
|
||
[Mozilla/5.0 (Windows; U; Win98; en-US; rv:1.8b4) Gecko/20050728 SeaMonkey/1.0a]
(nightly) (W98SE)
Opening the account creation wizard:
{{
Warning: function setupCopiesAndFoldersServer does not always return a value
Source File: chrome://messenger/content/AccountWizard.js
Line: 631, Column: 14
Source Code:
return;
Warning: function setupCopiesAndFoldersServer does not always return a value
Source File: chrome://messenger/content/AccountWizard.js
Line: 642, Column: 16
Source Code:
return false;
Warning: function setupCopiesAndFoldersServer does not always return a value
Source File: chrome://messenger/content/AccountWizard.js
Line: 644, Column: 13
Source Code:
return true;
}}
Trivial fix should be
{{
-631 return;
+631 return false;
}}
I guess.
| Assignee | ||
Comment 9•20 years ago
|
||
(In reply to comment #8)
> [Mozilla/5.0 (Windows; U; Win98; en-US; rv:1.8b4) Gecko/20050728
> SeaMonkey/1.0a]
> (nightly) (W98SE)
>
> Opening the account creation wizard:
> {{
> Warning: function setupCopiesAndFoldersServer does not always return a value
This is still present in
[Mozilla/5.0 (Windows; U; Win98; en-US; rv:1.8.0.2) Gecko/20060408 SeaMonkey/1.0.1] (nightly) (W98SE)
.
| Assignee | ||
Comment 10•17 years ago
|
||
(In reply to comment #0)
> chrome://messenger/content/AccountWizard.js line 62: trailing comma is not
> legal
> in ECMA-262 object initializers
Fixed by
"1.96 racham%netscape.com 2002-02-06 00:18 Fixing bug 101873. Adapting new <wizard/> for mailnews accountwizard. This fix introduces accessiblity via proper key handling and provides platform specific appearance. r=ducarroz, sr=mscott"
> JavaScript strict warning:
> chrome://messenger/content/AccountWizard.js line 321: redeclaration of var
> server
This is blamed to
"1.40 alecf%netscape.com 2000-02-07 21:56 update account wizard to run and fill in the first "invalid" account and start adding framework for pre-filled account data (such as from ISPs)
r=sspitzer"
Not sure what happened (or not) in bug 219509, but this was never fixed;
even if the JS Engine does not report this (type of) warning nowadays.
> verifyLocalFoldersAccount does not always return a value
|verifyLocalFoldersAccount| was the previous name of |setupCopiesAndFoldersServer()| (code),
which was fixed by
"1.128 bugzilla%standard8.demon.co.uk 2005-08-27 10:48 Fix bug 216245 subscribe/account wizard for newsgroups forgets account name. r=mnyromyr,sr=bienvenu"
and
"1.127.8.1 bugzilla%standard8.demon.co.uk 2006-04-14 01:57 Bug 216245 Subscribe/account wizard for newsgroups forgets account name. r=mnyromyr,sr=bienvenu for main patch, r/sr=bienvenu for regression fix (included in checkin) a=mscott for both patches"
> JavaScript strict warning:
> chrome://messenger/content/AccountWizard.js line 91: assignment to undeclared
> variable wizardManager
Fixed by
"1.96 racham%netscape.com 2002-02-06 00:18 Fixing bug 101873. Adapting new <wizard/> for mailnews accountwizard. This fix introduces accessiblity via proper key handling and provides platform specific appearance. r=ducarroz, sr=mscott"
> JavaScript strict warning:
> chrome://messenger/content/AccountWizard.js line 679: reference to undefined
> property pageData.accounttype
Fixed by
"1.96 racham%netscape.com 2002-02-06 00:18 Fixing bug 101873. Adapting new <wizard/> for mailnews accountwizard. This fix introduces accessiblity via proper key handling and provides platform specific appearance. r=ducarroz, sr=mscott"
| Assignee | ||
Comment 11•17 years ago
|
||
(In reply to comment #10)
> This is blamed to
> "1.40 alecf%netscape.com 2000-02-07 21:56
The second |var| was already there;
the first one was added, without removing the second one.
To reuse the variable is what is actually wanted.
Assignee: mail → sgautherie.bz
Status: NEW → ASSIGNED
Attachment #332627 -
Flags: superreview?(bienvenu)
Attachment #332627 -
Flags: review?(bienvenu)
| Assignee | ||
Updated•17 years ago
|
Severity: normal → trivial
Flags: in-testsuite-
Comment 12•17 years ago
|
||
Comment on attachment 332627 [details] [diff] [review]
(Av1) <AccountWizard.js>
I think server means two separate things here, so one of the vars should probably change its name.
Attachment #332627 -
Flags: superreview?(bienvenu)
Attachment #332627 -
Flags: superreview-
Attachment #332627 -
Flags: review?(bienvenu)
Attachment #332627 -
Flags: review-
| Assignee | ||
Comment 13•17 years ago
|
||
(In reply to comment #12)
> (From update of attachment 332627 [details] [diff] [review])
> I think server means two separate things here, so one of the vars should
> probably change its name.
What about my comment 11 ?
See
http://bonsai.mozilla.org/cvsview2.cgi?diff_mode=context&whitespace_mode=show&file=AccountWizard.js&branch=&root=/cvsroot&subdir=mozilla/mailnews/base/prefs/resources/content&command=DIFF_FRAMESET&rev1=1.39&rev2=1.40
| Assignee | ||
Comment 14•17 years ago
|
||
Av1, with additional documentation and some rewrites.
(In reply to comment #12)
> I think server means two separate things here, so one of the vars should
> probably change its name.
Actually, iiuc, |server| does mean the "same" thing all along...
Attachment #332627 -
Attachment is obsolete: true
Attachment #345834 -
Flags: superreview?(bienvenu)
Attachment #345834 -
Flags: review?(bienvenu)
| Assignee | ||
Comment 16•17 years ago
|
||
bienvenu, ping for r+sr.
Comment 17•16 years ago
|
||
This bug is open but targeted for seamonkey2.0a1, which has been released a long time ago. Please set the target milestone to an appropriate value, "---" if it has no specific target.
| Assignee | ||
Updated•16 years ago
|
Target Milestone: seamonkey2.0a1 → ---
Updated•16 years ago
|
Attachment #345834 -
Flags: superreview?(bienvenu)
Attachment #345834 -
Flags: superreview-
Attachment #345834 -
Flags: review?(bienvenu)
Attachment #345834 -
Flags: review-
Comment 18•16 years ago
|
||
Comment on attachment 345834 [details] [diff] [review]
(Av1a) <AccountWizard.js>
bit-rotted, sorry.
| Assignee | ||
Comment 19•16 years ago
|
||
Av1a, with comment 18 suggestion(s):
the file just moved one directory up.
Attachment #345834 -
Attachment is obsolete: true
Attachment #426806 -
Flags: superreview?(bienvenu)
Attachment #426806 -
Flags: review?(bienvenu)
Updated•16 years ago
|
Attachment #426806 -
Flags: superreview?(bienvenu)
Attachment #426806 -
Flags: superreview+
Attachment #426806 -
Flags: review?(bienvenu)
Attachment #426806 -
Flags: review+
| Assignee | ||
Comment 20•16 years ago
|
||
Comment on attachment 426806 [details] [diff] [review]
(Av1b) Remove duplicated |var|, Add documentation, Little code reformatting
[Checkin: Comment 20]
http://hg.mozilla.org/comm-central/rev/2a58f4a3497b
Attachment #426806 -
Attachment description: (Av1b) Remove duplicated |var|, Add documentation, Little code reformatting. → (Av1b) Remove duplicated |var|, Add documentation, Little code reformatting
[Checkin: Comment 20]
| Assignee | ||
Updated•16 years ago
|
Status: ASSIGNED → RESOLVED
Closed: 16 years ago
Component: MailNews: Account Configuration → Account Manager
Product: SeaMonkey → MailNews Core
QA Contact: mailnews-account → account-manager
Resolution: --- → FIXED
Target Milestone: --- → Thunderbird 3.1b1
You need to log in
before you can comment on or make changes to this bug.
Description
•