Closed
Bug 190638
Opened 23 years ago
Closed 22 years ago
JavaScript warnings and errors in Profile Manager
Categories
(SeaMonkey :: Startup & Profiles, defect)
Tracking
(Not tracked)
RESOLVED
FIXED
People
(Reporter: brant, Assigned: jag+mozilla)
Details
Attachments
(1 file, 2 obsolete files)
|
2.76 KB,
patch
|
jag+mozilla
:
review+
jag+mozilla
:
superreview+
asa
:
approval1.4b+
|
Details | Diff | Splinter Review |
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.
Attachment #112691 -
Flags: superreview?(rbs)
Attachment #112691 -
Flags: review?(stephend)
| Reporter | ||
Comment 2•23 years ago
|
||
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.
| Reporter | ||
Comment 3•23 years ago
|
||
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
| Reporter | ||
Comment 4•23 years ago
|
||
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-
| Reporter | ||
Updated•22 years ago
|
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)
Updated•22 years ago
|
Summary: JavaScript warnings and errors → JavaScript warnings and errors in Profile Manager
Comment 9•22 years ago
|
||
Comment on attachment 112691 [details] [diff] [review]
fix issues
clearing obsolete review requests
Attachment #112691 -
Flags: superreview?(rbs)
Attachment #112691 -
Flags: review?(stephend)
Updated•22 years ago
|
Attachment #112701 -
Flags: superreview?(rbs)
| Assignee | ||
Comment 10•22 years ago
|
||
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 11•22 years ago
|
||
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+
| Reporter | ||
Comment 12•22 years ago
|
||
I don't have checkin privs if somebody else wants to do it.
Comment 13•22 years ago
|
||
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
Updated•21 years ago
|
Product: Browser → Seamonkey
You need to log in
before you can comment on or make changes to this bug.
Description
•