Closed Bug 60666 Opened 24 years ago Closed 24 years ago

javascript strict warnings in pref-search.js

Categories

(SeaMonkey :: Preferences, defect, P3)

defect

Tracking

(Not tracked)

VERIFIED FIXED

People

(Reporter: bugzilla, Assigned: matt)

Details

Attachments

(2 files)

JavaScript strict warning:
chrome://communicator/content/pref/pref-search.js line 59: redeclaration of var
defaultEngineURI
Attached patch proposed patchSplinter Review
Keywords: patch
Looking at this again, i noticed that InitSingleEngineList() and
setDefaultSearchEngine() are unused.  Attaching a patch that removes those
obsolete functions and some other dead code. Adding jag for r=
Keywords: review
r=timeless :-)
Keywords: reviewapproval
cc'ing alec for sr
 * Contributor(s): Robert John Churchill (rjc@netscape.com)
 *                 Mark Olson (maolson@earthlink.net)

I believe the preferred way to write this is:

 * Contributor(s):
 *   Robert John Churchill <rjc@netscape.com>
 *   Mark Olson <maolson@earthlink.net>

Optionally with "(Original Author)" appended to the deserving name :-)

No need to attach a new patch, but could whoever ends up checking this in (I'm
sure someone will beat me to it) fix that?
fix checked in
Status: NEW → RESOLVED
Closed: 24 years ago
Keywords: approval, patch
Resolution: --- → FIXED
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
Product: Browser → Seamonkey
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: