Closed Bug 60669 Opened 24 years ago Closed 23 years ago

javascript strict warnings in EdDialogCommon.js

Categories

(Core :: DOM: Editor, defect, P3)

defect

Tracking

()

VERIFIED WORKSFORME
mozilla1.0

People

(Reporter: bugzilla, Assigned: cmanske)

Details

Attachments

(2 files)

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
How do you reproduce this one?
Add:
user_pref("javascript.options.strict", true);
to your prefs.js file and go into Preferences -> New Page Settings
assigning to cmanske -- his code
Assignee: beppe → cmanske
Target Milestone: --- → mozilla0.9
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
Variables are initialized to avoid JS warning.
Status: ASSIGNED → RESOLVED
Closed: 24 years ago
Resolution: --- → FIXED
Verified Linux 20010106
Status: RESOLVED → VERIFIED
sorry to say but:

Warning: assignment to undeclared variable metaElement
Source File: chrome://editor/content/EdDialogCommon.js
Line: 970
Status: VERIFIED → REOPENED
Resolution: FIXED → ---
also:
Warning: assignment to undeclared variable metaElement
Source File: chrome://editor/content/EdDialogCommon.js
Line: 1003
Status: REOPENED → ASSIGNED
Target Milestone: mozilla0.9 → mozilla1.0
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
r=gemal@gemal.dk
sr=kin@netscape.com for 07/24/01 01:11 patch
Fix checked in, thanks to all.
Status: ASSIGNED → RESOLVED
Closed: 24 years ago23 years ago
Resolution: --- → FIXED
Verified! Warnings seems gone to me. Will reopen if found again...
Build 20010820 on win2k
Status: RESOLVED → VERIFIED
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 → ---
Status: REOPENED → ASSIGNED
I'm not seeing anymore warnings. I examined "ConfirmWithTitle" and it looks good.
Status: ASSIGNED → RESOLVED
Closed: 23 years ago23 years ago
Resolution: --- → WORKSFORME
verified.
Status: RESOLVED → VERIFIED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: