Closed Bug 190638 Opened 23 years ago Closed 22 years ago

JavaScript warnings and errors in Profile Manager

Categories

(SeaMonkey :: Startup & Profiles, defect)

x86
Windows XP
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: brant, Assigned: jag+mozilla)

Details

Attachments

(1 file, 2 obsolete files)

User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.3b) Gecko/20030125 Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.3b) Gecko/20030125 I ran the Profile Manager from within Mozilla and it gave some warnings. Reproducible: Didn't try Steps to Reproduce: 1. Run Profile Manager in Tools menu. Actual Results: Warning: trailing comma is not legal in ECMA-262 object initializers Source File: chrome://communicator/content/profile/createProfileWizard.js Line: 35 Source Code: } Warning: function Startup does not always return a value Source File: chrome://communicator/content/profile/createProfileWizard.js Line: 66 Source Code: } Warning: function processCreateProfileData does not always return a value Source File: chrome://communicator/content/profile/createProfileWizard.js Line: 176 Source Code: } Warning: reference to undefined property this.PageData[tag] Source File: chrome://global/content/widgetStateManager.js Line: 437 Warning: reference to undefined property thisTagData.nodata Source File: chrome://global/content/widgetStateManager.js Line: 184 Warning: reference to undefined property this.content_frame.onInit Source File: chrome://global/content/widgetStateManager.js Line: 279 Warning: reference to undefined property this.content_frame.validate Source File: chrome://global/content/widgetStateManager.js Line: 293 Warning: reference to undefined property this.content_frame.GetFields Source File: chrome://global/content/widgetStateManager.js Line: 89 Warning: reference to undefined property doc.controls Source File: chrome://global/content/widgetStateManager.js Line: 98 Warning: reference to undefined property this.PageData[tag] Source File: chrome://global/content/widgetStateManager.js Line: 437 Warning: reference to undefined property thisTagData.nodata Source File: chrome://global/content/widgetStateManager.js Line: 184 Warning: reference to undefined property this.content_frame.onInit Source File: chrome://global/content/widgetStateManager.js Line: 279 Expected Results: No warnings. I had strict warnings on.
Attached patch fix issues (obsolete) — Splinter Review
Attachment #112691 - Flags: superreview?(rbs)
Attachment #112691 - Flags: review?(stephend)
I tried timeless's patch and there is one warning left for that file that I came across: Warning: assignment to undeclared variable proceed Source File: chrome://communicator/content/profile/createProfileWizard.js Line: 99 And in other files: Warning: assignment to undeclared variable renameButton Source File: chrome://communicator/content/profile/profileManager.js Line: 55 Warning: assignment to undeclared variable deleteButton Source File: chrome://communicator/content/profile/profileManager.js Line: 134 Since timeless already fixed the other warnings, I'll fix that uninitialized variable and try it again next time I restart Mozilla.
Attached patch fixes the undeclared variables (obsolete) — Splinter Review
I just tested out this patch, the only remaining things are the undefined properties which I am not so sure how to fix.
Attachment #112691 - Attachment is obsolete: true
Comment on attachment 112701 [details] [diff] [review] fixes the undeclared variables By the way, the seemingly unchanged lines are because my editor removes worthless trailing spaces from lines.
Attachment #112701 - Flags: superreview?(rbs)
Attachment #112701 - Flags: review?(stephend)
Please attach a cvs diff -uw. Also, I'm not the right person to really review the patch.
Comment on attachment 112701 [details] [diff] [review] fixes the undeclared variables Again, please attach a cvs diff -uw
Attachment #112701 - Flags: review?(stephend) → review-
remade patch
Attachment #112701 - Attachment is obsolete: true
Attachment #118202 - Flags: superreview?(rbs)
Attachment #118202 - Flags: review?(stephend)
Comment on attachment 118202 [details] [diff] [review] patch for profileManager.js and createProfileWizard.js Looks good to me, but I really don't qualify to review this code (sorry). Since it's profile manager, can you get jaggernaut@netscape.com to take a gander? Thanks.
Attachment #118202 - Flags: review?(stephend) → review?(jaggernaut)
Summary: JavaScript warnings and errors → JavaScript warnings and errors in Profile Manager
Comment on attachment 112691 [details] [diff] [review] fix issues clearing obsolete review requests
Attachment #112691 - Flags: superreview?(rbs)
Attachment #112691 - Flags: review?(stephend)
Attachment #112701 - Flags: superreview?(rbs)
Comment on attachment 118202 [details] [diff] [review] patch for profileManager.js and createProfileWizard.js r=+sr=jag
Attachment #118202 - Flags: superreview?(rbs)
Attachment #118202 - Flags: superreview+
Attachment #118202 - Flags: review?(jaggernaut)
Attachment #118202 - Flags: review+
Attachment #118202 - Flags: approval1.4b?
Comment on attachment 118202 [details] [diff] [review] patch for profileManager.js and createProfileWizard.js a=asa (on behalf of drivers) for checkin to 1.4b.
Attachment #118202 - Flags: approval1.4b? → approval1.4b+
I don't have checkin privs if somebody else wants to do it.
Checking in createProfileWizard.js; /cvsroot/mozilla/profile/resources/content/createProfileWizard.js,v <-- createProfileWizard.js new revision: 1.41; previous revision: 1.40 done Checking in profileManager.js; /cvsroot/mozilla/profile/resources/content/profileManager.js,v <-- profileManager.js new revision: 1.55; previous revision: 1.54 done
Status: NEW → RESOLVED
Closed: 22 years ago
Resolution: --- → FIXED
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: