Open
Bug 296431
Opened 19 years ago
Updated 2 years ago
<preference type='custom'/>: for saving in places other than user prefs
Categories
(Toolkit :: Preferences, enhancement)
Toolkit
Preferences
Tracking
()
NEW
People
(Reporter: asqueella, Unassigned)
Details
It would be really nice, if a feature similar to onpreferenceread/onpreferencewrite (setter and getter for UI element's |value|) could be implemented on <preference>'s side. What I mean is, sometimes we need to store a value outside user prefs. It would be nice to be able to use other goodness of prefs bindings (like, sync of different UI elements, instantApply handling, subdialogs handling) for such "prefs". If this still isn't clear, here's an example. In my extension, I need to save user's password. I use password manager for that. I'd like to be able to write the prefs UI as if I stored the password in user prefs, but use a special kind of pref, like: <preference type="custom" onprefread="return read_from_password_manager();" onprefwrite="return write_to_password_manager();"/> to store the password in password manager, instead of user prefs. Hope that's clear.
Updated•19 years ago
|
OS: Windows XP → All
Hardware: PC → All
Updated•15 years ago
|
QA Contact: nobody → preferences
Updated•2 years ago
|
Severity: normal → S3
You need to log in
before you can comment on or make changes to this bug.
Description
•