Closed Bug 296383 Opened 20 years ago Closed 19 years ago

valueFromPreferences should report unknown pref types (eg 'char') to JS Console

Categories

(Toolkit :: Preferences, enhancement)

enhancement
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla1.9alpha1

People

(Reporter: asqueella, Assigned: asqueella)

References

(Blocks 1 open bug, )

Details

Attachments

(1 file)

Currently <preference>'s valueFromPreferences getter and setter do nothing when
they see an unknown value in preference's |type|. This is unhelpful: I
accidentally used type="char" in my Options window, and spent a few minutes to
find the problem -- it looked okay in the XUL file, and there were no messages
in JS Console.

It should instead report the error to the JavaScript Console, something like:
"Preference [id] has unknown type [type]".
Assignee: nobody → asqueella
Status: NEW → ASSIGNED
Attachment #207972 - Flags: second-review?(mconnor)
Attachment #207972 - Flags: first-review?(bugs.mano)
Attachment #207972 - Flags: second-review?(mconnor) → second-review+
Attachment #207972 - Flags: first-review?(bugs.mano)
Whiteboard: [checkin needed]
mozilla/toolkit/content/widgets/preferences.xml 	1.53
Status: ASSIGNED → RESOLVED
Closed: 19 years ago
Resolution: --- → FIXED
Whiteboard: [checkin needed]
Target Milestone: --- → mozilla1.9alpha1
Blocks: 390616
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: