Closed
Bug 110448
Opened 23 years ago
Closed 23 years ago
javascript strict warnings in editor.js
Categories
(SeaMonkey :: Composer, defect, P3)
SeaMonkey
Composer
Tracking
(Not tracked)
VERIFIED
FIXED
mozilla0.9.9
People
(Reporter: bugzilla, Assigned: Brade)
Details
Attachments
(1 file)
412 bytes,
patch
|
stdowa+bugzilla
:
review+
kinmoz
:
superreview+
|
Details | Diff | Splinter Review |
Warning: assignment to undeclared variable gPrefs
Source File: chrome://editor/content/editor.js
Line: 299
build 20011115
Reporter | ||
Updated•23 years ago
|
Severity: enhancement → normal
Some steps to get to the error would be nice...
Status: NEW → ASSIGNED
Reporter | ||
Comment 2•23 years ago
|
||
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
Comment 3•23 years ago
|
||
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?
Comment 4•23 years ago
|
||
var gPrefs; on line 74 was added by cmanske with his 1.129 checkin on 11/29, so
this bug should be fixed.
Reporter | ||
Comment 5•23 years ago
|
||
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
Comment 6•23 years ago
|
||
Comment 7•23 years ago
|
||
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 8•23 years ago
|
||
Comment on attachment 65232 [details] [diff] [review]
patch for var element; redeclaration
r=walk84
Attachment #65232 -
Flags: review+
Assignee | ||
Comment 9•23 years ago
|
||
r=brade (module owner)
Comment 10•23 years ago
|
||
simon: can you sr= Alex's patch?
Comment 11•23 years ago
|
||
Looks like someone already checked in this fix.
Assignee: syd → brade
Status: ASSIGNED → NEW
Priority: -- → P3
Target Milestone: Future → mozilla0.9.9
Comment 12•23 years ago
|
||
Comment on attachment 65232 [details] [diff] [review]
patch for var element; redeclaration
sr=kin@netscape.com
Attachment #65232 -
Flags: superreview+
Comment 13•23 years ago
|
||
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.
Assignee | ||
Comment 14•23 years ago
|
||
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
Comment 15•23 years ago
|
||
bz checked in the patch on Feb. 2
Status: ASSIGNED → RESOLVED
Closed: 23 years ago
Resolution: --- → FIXED
Comment 16•23 years ago
|
||
Henrik, please verify...thx.
Updated•20 years ago
|
Product: Browser → Seamonkey
You need to log in
before you can comment on or make changes to this bug.
Description
•