Closed Bug 286893 Opened 20 years ago Closed 19 years ago

Some more JS warnings...

Categories

(Thunderbird :: Preferences, defect)

defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED
Thunderbird1.1

People

(Reporter: sgautherie, Assigned: sgautherie)

Details

Attachments

(5 obsolete files)

[Mozilla Thunderbird, version 1.0+ (20050319)] (nightly) (W98SE)

Tools > Options
{{
Warning: redeclaration of var keyClose
Source File: chrome://global/content/bindings/preferences.xml
Line: 457, Column: 14
Source Code:
          var keyClose = document.getAnonymousElementByAttribute(this, "anonid",
"keyClose");

Warning: trailing comma is not legal in ECMA-262 object initializers
Source File: chrome://messenger/content/preferences/general.js
Line: 106
Source Code:
};
}}
Then, clicking on Display
{{
Warning: trailing comma is not legal in ECMA-262 object initializers
Source File: chrome://messenger/content/preferences/display.js
Line: 56
Source Code:
};

Error: Error in parsing value for property 'background-color'.  Declaration dropped.
Source File: chrome://messenger/content/preferences/preferences.xul
Line: 0
}}
Target Milestone: --- → Thunderbird1.1
Then, clicking on Privacy
{{
Warning: trailing comma is not legal in ECMA-262 object initializers
Source File: chrome://messenger/content/preferences/privacy.js
Line: 106
Source Code:
};
}}
Severity: trivial → normal
Keywords: helpwanted
Whiteboard: [helpwanted: on 'background-color' error]
Then, clicking on Attachements
{{
Warning: trailing comma is not legal in ECMA-262 object initializers
Source File: chrome://messenger/content/preferences/downloads.js
Line: 136
Source Code:
};
}}
Then, clicking on Advanced
{{
Warning: trailing comma is not legal in ECMA-262 object initializers
Source File: chrome://messenger/content/preferences/advanced.js
Line: 98
Source Code:
};
}}
[Mozilla Thunderbird, version 1.0+ (20050319)] (nightly) (W98SE)

Warning fixes,
plus some var removals, and a few nit fixes.
Assignee: mscott → gautheri
Status: NEW → ASSIGNED
Attachment #178006 - Flags: review?(mscott)
Comment on attachment 178006 [details] [diff] [review]
(Av1) (for review only)
[Checkin: See comment 6]

you'll need moa for the toolkit change.

I checked in the mozilla/mail stuff.
Attachment #178006 - Flags: review?(mscott) → review+
Attached patch (Bv1) additional space savings (obsolete) — Splinter Review
The space savings which were not included in Av1...
Attachment #186862 - Flags: review?(mscott)
(Bv1 was missing a file.)
Attachment #186862 - Attachment is obsolete: true
Attachment #186863 - Flags: review?(mscott)
Attachment #186862 - Flags: review?(mscott)
Attachment #178006 - Attachment description: (Av1) (for review only) → (Av1) (for review only) [Checkin: See comment 6]
Attachment #178006 - Attachment is obsolete: true
Attached patch (Cv1) Toolkit part (obsolete) — Splinter Review
Av1 Toolkit part, updated to Trunk, and with full diff.

Keeping
{{
Av1) (for review only)		 patch		2005-03-19 18:01 PDT	12.47
KB	  mscott: review+
}}

Could you super-review="moa"/check in this patch ? Thanks.
Attachment #186870 - Flags: superreview?(bryner)
Attachment #186870 - Flags: review+
moving JS warning bugs off the blocker list
Target Milestone: Thunderbird1.1 → ---
Comment on attachment 186863 [details] [diff] [review]
(Bv1b) additional space savings
[Rejected in comment 11]

i'm not interested in making  white space only changes.
Attachment #186863 - Flags: review?(mscott) → review-
Comment on attachment 186870 [details] [diff] [review]
(Cv1) Toolkit part

As-is, this patch has way too many whitespace-only changes.  Those clutter up cvsblame and don't really help anything.  I would be ok with a version of this that just fixes the variable redeclaration warning.
Attachment #186870 - Flags: superreview?(bryner) → superreview-
Cv1, with comment 12 suggestion(s).

The initial |Warning: redeclaration of var keyClose| was fixed (by code removal) in |1.44	mozilla.mano%sent.com	2006-01-01 02:58	 	Bug 315195 - Select wrong default font if I close the preferences window with Command + W shortcut. r=mconnor|.
Attachment #186870 - Attachment is obsolete: true
Attachment #212386 - Flags: superreview?
Attachment #212386 - Flags: review+
Attachment #212386 - Flags: superreview? → superreview?(bryner)
Comment on attachment 212386 [details] [diff] [review]
(Cv2-w) Toolkit part
[Rejected in comment 14]

In that case, I don't see much point in this patch.  Temporary variables for clarity are not errors.
Attachment #212386 - Flags: superreview?(bryner) → superreview-
Attachment #212386 - Attachment description: (Cv2-w) Toolkit part → (Cv2-w) Toolkit part [Rejected in comment 14]
Attachment #212386 - Attachment is obsolete: true
Attachment #186863 - Attachment description: (Bv1b) additional space savings → (Bv1b) additional space savings [Rejected in comment 11]
Attachment #186863 - Attachment is obsolete: true
Dropping the 'background-color' error from comment 1, for the context of this bug.
Status: ASSIGNED → RESOLVED
Closed: 19 years ago
Keywords: helpwanted
Resolution: --- → FIXED
Whiteboard: [helpwanted: on 'background-color' error]
Target Milestone: --- → Thunderbird1.1
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: