Closed Bug 275107 Opened 20 years ago Closed 20 years ago

Some JS Strict warnings (In am-server.js, am-server-advanced.js, am-serverwithnoidentities.js)

Categories

(SeaMonkey :: MailNews: Account Configuration, defect)

defect
Not set
minor

Tracking

(Not tracked)

RESOLVED FIXED
mozilla1.8beta1

People

(Reporter: sgautherie, Assigned: sgautherie)

Details

Attachments

(2 files)

[Mozilla/5.0 (Windows; U; Win98; en-US; rv:1.8a5) Gecko/20041122] (release) (W98SE) {{ Warning: redeclaration of var account Source File: chrome://messenger/content/am-server.js Line: 186, Column: 10 Source Code: var account = accountManager.getAccount(serverSettings.deferredToAccount); Warning: function onOk does not always return a value Source File: chrome://messenger/content/am-server-advanced.js Line: 187 Source Code: } Warning: assignment to undeclared variable gServer Source File: chrome://messenger/content/am-serverwithnoidentities.js Line: 44 }}
Neil: At first glance, I'm puzzled by the <am-serverwithnoidentities.js> case...
Assignee: sspitzer → gautheri
Target Milestone: --- → mozilla1.8alpha6
Status: NEW → ASSIGNED
Fixes 2 of the 3 warnings, plus a (double) code optimization.
Attachment #168993 - Flags: review?(neil.parkwaycc.co.uk)
(In reply to comment #1) >At first glance, I'm puzzled by the <am-serverwithnoidentities.js> case... That panel probably doesn't need any JavaScript to operate at all.
Attachment #168993 - Flags: review?(neil.parkwaycc.co.uk) → review+
Attachment #168993 - Flags: superreview?(mscott)
Fixes the 3rd warning, per Neil's suggestion. Test: MailNews > Edit > M & N Account Settings... > Local Folders
Attachment #169134 - Flags: review?(neil.parkwaycc.co.uk)
Comment on attachment 169134 [details] [diff] [review] (Bv1) <am-serverwithnoidentities.js> [Checked in: Comment 10] We probably want to cvs remove the .js file too.
Attachment #169134 - Flags: review?(neil.parkwaycc.co.uk) → review+
Attachment #169134 - Flags: superreview?(mscott)
Flags: blocking1.8b?
Target Milestone: mozilla1.8alpha6 → mozilla1.8beta
Comment on attachment 168993 [details] [diff] [review] (Av1) <am-server*.js> [Checked in: Comment 10] No super-review from <mscott@mozilla.org> since "2004-12-18" :-(
Attachment #168993 - Flags: superreview?(mscott) → superreview?(dmose)
Comment on attachment 169134 [details] [diff] [review] (Bv1) <am-serverwithnoidentities.js> [Checked in: Comment 10] No super-review from <mscott@mozilla.org> since "2004-12-19" :-(
Attachment #169134 - Flags: superreview?(mscott) → superreview?(dmose)
Summary: Some JS Strict warnings → Some JS Strict warnings (In am-server.js, am-server-advanced.js, am-serverwithnoidentities.js)
Flags: blocking1.8b? → blocking1.8b-
Comment on attachment 169134 [details] [diff] [review] (Bv1) <am-serverwithnoidentities.js> [Checked in: Comment 10] sr=dmose
Attachment #169134 - Flags: superreview?(dmose) → superreview+
Comment on attachment 168993 [details] [diff] [review] (Av1) <am-server*.js> [Checked in: Comment 10] sr=dmose
Attachment #168993 - Flags: superreview?(dmose) → superreview+
Fixes checked in.
Status: ASSIGNED → RESOLVED
Closed: 20 years ago
Resolution: --- → FIXED
Attachment #168993 - Attachment description: (Av1) <am-server*.js> → (Av1) <am-server*.js> [Checked in: Comment 10]
Attachment #168993 - Attachment is obsolete: true
Attachment #169134 - Attachment description: (Bv1) <am-serverwithnoidentities.js> → (Bv1) <am-serverwithnoidentities.js> [Checked in: Comment 10]
Attachment #169134 - Attachment is obsolete: true
Attachment #168993 - Attachment is obsolete: false
Attachment #169134 - Attachment is obsolete: false
It looks like these warning fixes caused Bug 308311. gServer is no longer getting defined for local folders in amUtils.js because it was getting defined in am-serverwithnoidentities.js.
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: