Closed Bug 110448 Opened 23 years ago Closed 23 years ago

javascript strict warnings in editor.js

Categories

(SeaMonkey :: Composer, defect, P3)

defect

Tracking

(Not tracked)

VERIFIED FIXED
mozilla0.9.9

People

(Reporter: bugzilla, Assigned: Brade)

Details

Attachments

(1 file)

Warning: assignment to undeclared variable gPrefs Source File: chrome://editor/content/editor.js Line: 299 build 20011115
Severity: enhancement → normal
Target Milestone: --- → M1
Target Milestone: M1 → Future
Some steps to get to the error would be nice...
Status: NEW → ASSIGNED
looking at the code it seems to happen the first time that the composer it started. gPrefs = GetPrefs(); should just be: var gPrefs = GetPrefs(); at line 299 in editor.js
I disagree. For one, I cannot see this warning given the steps named. For another, take a look at line 74 of http://lxr.mozilla.org/seamonkey/source/editor/ui/composer/content/editor.js . var gPrefs; Mozilla/5.0 (Windows; U; Win98; en-US; rv:0.9.7+) Gecko/20020105 Reporter: Have you been able to reproduce this strict JS warning in a recent build?
var gPrefs; on line 74 was added by cmanske with his 1.129 checkin on 11/29, so this bug should be fixed.
This is the only warning I'm now seeing: Warning: redeclaration of var element Source File: chrome://editor/content/editor.js Line: 961, Column: 8 Source Code: var element; http://lxr.mozilla.org/mozilla/source/editor/ui/composer/content/editor.js#961el but element is already defined in: http://lxr.mozilla.org/mozilla/source/editor/ui/composer/content/editor.js#936
Adding patch keyword as I cannot check this in. Note this is a completely safe patch for 0.9.8, recommend getting a= from one of the drivers.
Keywords: patch
Comment on attachment 65232 [details] [diff] [review] patch for var element; redeclaration r=walk84
Attachment #65232 - Flags: review+
r=brade (module owner)
simon: can you sr= Alex's patch?
Looks like someone already checked in this fix.
Assignee: syd → brade
Status: ASSIGNED → NEW
Priority: -- → P3
Target Milestone: Future → mozilla0.9.9
Comment on attachment 65232 [details] [diff] [review] patch for var element; redeclaration sr=kin@netscape.com
Attachment #65232 - Flags: superreview+
Last time I heard someone tell me the fix was already checked in, I reopened the bug a week later. It's now line 990.
yes, the problem is still present (notice Kin did add an sr=); I have this patch in my tree and I hope to check it in soon (unless Daniel or someone else beats me to it).
Status: NEW → ASSIGNED
bz checked in the patch on Feb. 2
Status: ASSIGNED → RESOLVED
Closed: 23 years ago
Resolution: --- → FIXED
Henrik, please verify...thx.
verified on 20020208
Status: RESOLVED → VERIFIED
Product: Browser → Seamonkey
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: