Closed
Bug 60669
Opened 24 years ago
Closed 23 years ago
javascript strict warnings in EdDialogCommon.js
Categories
(Core :: DOM: Editor, defect, P3)
Core
DOM: Editor
Tracking
()
VERIFIED
WORKSFORME
mozilla1.0
People
(Reporter: bugzilla, Assigned: cmanske)
Details
Attachments
(2 files)
593 bytes,
patch
|
Details | Diff | Splinter Review | |
884 bytes,
patch
|
Details | Diff | Splinter Review |
JavaScript strict warning: chrome://editor/content/EdDialogCommon.js line 993: reference to undefined prope rty colors.TextColor JavaScript strict warning: chrome://editor/content/EdDialogCommon.js line 996: reference to undefined prope rty colors.BackgroundColor
Comment 1•24 years ago
|
||
How do you reproduce this one?
Reporter | ||
Comment 2•24 years ago
|
||
Add: user_pref("javascript.options.strict", true); to your prefs.js file and go into Preferences -> New Page Settings
Comment 3•24 years ago
|
||
assigning to cmanske -- his code
Assignee: beppe → cmanske
Target Milestone: --- → mozilla0.9
Assignee | ||
Comment 4•24 years ago
|
||
Extremely minor. We are testing for the existence of a couple of variables that may be null like this: if (!color.TextColor) color.TextColor = ... so there's really nothing wrong with the code. The warnings can be avoided by simply initiallizing color.TextColor and color.BackgroundColor to 0.
Status: NEW → ASSIGNED
Assignee | ||
Comment 5•24 years ago
|
||
Variables are initialized to avoid JS warning.
Status: ASSIGNED → RESOLVED
Closed: 24 years ago
Resolution: --- → FIXED
Reporter | ||
Comment 7•23 years ago
|
||
sorry to say but: Warning: assignment to undeclared variable metaElement Source File: chrome://editor/content/EdDialogCommon.js Line: 970
Status: VERIFIED → REOPENED
Resolution: FIXED → ---
Reporter | ||
Comment 8•23 years ago
|
||
also: Warning: assignment to undeclared variable metaElement Source File: chrome://editor/content/EdDialogCommon.js Line: 1003
Assignee | ||
Updated•23 years ago
|
Status: REOPENED → ASSIGNED
Target Milestone: mozilla0.9 → mozilla1.0
Reporter | ||
Comment 10•23 years ago
|
||
I see: Warning: assignment to undeclared variable nextChild Source File: chrome://editor/content/EdDialogCommon.js Line: 613 Warning: assignment to undeclared variable metaElement Source File: chrome://editor/content/EdDialogCommon.js Line: 970
Reporter | ||
Comment 12•23 years ago
|
||
r=gemal@gemal.dk
Comment 13•23 years ago
|
||
sr=kin@netscape.com for 07/24/01 01:11 patch
Fix checked in, thanks to all.
Status: ASSIGNED → RESOLVED
Closed: 24 years ago → 23 years ago
Resolution: --- → FIXED
Reporter | ||
Comment 15•23 years ago
|
||
Verified! Warnings seems gone to me. Will reopen if found again... Build 20010820 on win2k
Status: RESOLVED → VERIFIED
Reporter | ||
Comment 16•23 years ago
|
||
going into Edit -> Prefs -> Composer -> New Page Settings produces: Warning: function ConfirmWithTitle does not always return a value Source File: chrome://editor/content/EdDialogCommon.js Line: 288 Source Code: }
Status: VERIFIED → REOPENED
Resolution: FIXED → ---
Assignee | ||
Updated•23 years ago
|
Status: REOPENED → ASSIGNED
Assignee | ||
Comment 17•23 years ago
|
||
I'm not seeing anymore warnings. I examined "ConfirmWithTitle" and it looks good.
Status: ASSIGNED → RESOLVED
Closed: 23 years ago → 23 years ago
Resolution: --- → WORKSFORME
You need to log in
before you can comment on or make changes to this bug.
Description
•