Closed
Bug 60630
Opened 25 years ago
Closed 25 years ago
javascript strict warnings in pref-charset.js
Categories
(SeaMonkey :: Preferences, defect, P3)
SeaMonkey
Preferences
Tracking
(Not tracked)
VERIFIED
FIXED
People
(Reporter: bugzilla, Assigned: maolson)
Details
Attachments
(4 files)
|
2.82 KB,
patch
|
Details | Diff | Splinter Review | |
|
17.86 KB,
patch
|
Details | Diff | Splinter Review | |
|
17.86 KB,
patch
|
Details | Diff | Splinter Review | |
|
17.25 KB,
patch
|
Details | Diff | Splinter Review |
JavaScript strict warning:
chrome://communicator/content/pref/pref-charset.js line 150: assignment to
undeclared variable j
JavaScript strict warning:
chrome://communicator/content/pref/pref-charset.js line 188: assignment to
undeclared variable arrayOfPrefs
JavaScript strict warning:
chrome://communicator/content/pref/pref-charset.js line 195: assignment to
undeclared variable i
JavaScript strict warning:
chrome://communicator/content/pref/pref-charset.js line 197: assignment to
undeclared variable str
JavaScript strict warning:
chrome://communicator/content/pref/pref-charset.js line 93: assignment to
undeclared variable atom
JavaScript strict warning:
chrome://communicator/content/pref/pref-charset.js line 99: assignment to
undeclared variable tit
JavaScript strict warning:
chrome://communicator/content/pref/pref-charset.js line 105: assignment to
undeclared variable visible
| Reporter | ||
Updated•25 years ago
|
Component: Address Book → Preferences
Product: MailNews → Browser
| Reporter | ||
Comment 1•25 years ago
|
||
| Reporter | ||
Updated•25 years ago
|
Comment 3•25 years ago
|
||
r=nhotta
| Assignee | ||
Updated•25 years ago
|
Updated•25 years ago
|
Status: NEW → ASSIGNED
Target Milestone: --- → mozilla0.8
| Assignee | ||
Comment 4•25 years ago
|
||
| Assignee | ||
Comment 5•25 years ago
|
||
I was looking at the previous patch and noticed it missed a case or two... Also
the atom variable must be declared global for the code to work.
This new patch also includes an agressive whitespace rearranging as well as \t
and dump() removal, since debugging was rather difficult with some of the
non-standard formatting in the file. -wu diff on request.
Comment 6•25 years ago
|
||
Reassign to maolson@earthlink.net, r=nhotta, please get sr and check in. Let me
know if you want me to checkin.
Please test "Character Coding -> Customize..." in three cases, browser, mail
compose and mail view. Test the dialog functionality, also check the change in
the dialog actually changes the charset menu items.
Assignee: nhotta → maolson
Status: ASSIGNED → NEW
Target Milestone: mozilla0.8 → ---
| Assignee | ||
Updated•25 years ago
|
Status: NEW → ASSIGNED
| Assignee | ||
Comment 7•25 years ago
|
||
Ok, tested a change in each of the 3 windows, worked great. All open windows
noticed the change.
I noticed 2 (existing) nits about the dialog though - Double click doesn't move
items, and when focus is in on list, it takes 2 clicks to gain focus in the
other. These are both minor, but another bug could be filed to clean those up.
Comment 9•25 years ago
|
||
couple of comments:
I think literals are nicer than constructing with 'new', e.g.
var foopy = []; instead of var foopy = new Array();
var noopy = ""; instead of var foopy = new String();
but that's stylistic.
I see you're dumping to the console in some catch blocks. What is the benefit of
this? If you want to convey useful information for debugging, then leave out
try..catch altogether and let the exception be thrown. But in the normal case if
an exception is thrown as part of normal operation, you probably just want to
stifle, and the dump is meaningless as optimized clients run without consoles.
| Assignee | ||
Comment 10•25 years ago
|
||
| Assignee | ||
Comment 11•25 years ago
|
||
| Assignee | ||
Comment 12•25 years ago
|
||
As it turned out, the pass to remove try{}'s where appropriate resulted in
removing quite a few lines of code that were just wrong (the catch{} was
executing every time). The three try{}'s left should be legitimate, and do not
dump() on failure.
nhotta, you may want to look at this for r= reconsideration, the updates are
non-trivial.
Comment 13•25 years ago
|
||
r=nhotta
| Assignee | ||
Comment 14•25 years ago
|
||
cc'ing alecf for sr
Comment 15•25 years ago
|
||
this is a big review, I'll try to get to it after moz 0.8
Comment 16•25 years ago
|
||
thanks for cleaning this up! what a mess
sr=alecf
Comment 17•25 years ago
|
||
Checked this in for mao. Marking fixed.
Status: ASSIGNED → RESOLVED
Closed: 25 years ago
Resolution: --- → FIXED
This isn't mail/news, over to the browser team to verify.
QA Contact: stephend → claudius
Comment 19•25 years ago
|
||
hot potato...sairuh i think the 1-24 comments are a clue for repro/testing
QA Contact: claudius → sairuh
| Reporter | ||
Comment 20•24 years ago
|
||
I cant see the warnings with todays build 20010619.
Will reopen if I see them again.
Please add the following line to your prefs.js file, so we could avoid all
these strict warning fixup...:
user_pref("javascript.options.strict", true);
Status: RESOLVED → VERIFIED
Updated•21 years ago
|
Product: Browser → Seamonkey
You need to log in
before you can comment on or make changes to this bug.
Description
•