Closed
Bug 287111
Opened 19 years ago
Closed 19 years ago
Change onpreferenceread/onpreferencewrite to onsyncfrompreference/onsynctopreference
Categories
(Toolkit :: Preferences, defect, P2)
Toolkit
Preferences
Tracking
()
RESOLVED
FIXED
mozilla1.8beta3
People
(Reporter: bugs, Assigned: asaf)
Details
Attachments
(1 file)
26.93 KB,
patch
|
mconnor
:
first-review+
mscott
:
second-review+
benjamin
:
approval-aviary1.1a2+
|
Details | Diff | Splinter Review |
When you write XUL using the new preference system: <checkbox onpreferenceread="return foo();" onpreferencewrite="return bar();"/> onpreferenceread: "initialize this element's .value with the value returned from this function or the default value from preferences, if this function returns undefined." onpreferencewrite: "save state to the applicable <preference> element, using the value returned by this function, or the default .value of this element if the function returns undefined." These method names are a little confusing and hard to wrap your head around, even though they're sort of accurate. A better set of names would be: onsyncfrompreference / onsynctopreference These names are *more* accurate, and a little easier to understand. I would like to get this change before Firefox 1.1 and people start relying on the old names.
Reporter | ||
Updated•19 years ago
|
Status: NEW → ASSIGNED
Priority: -- → P2
Target Milestone: --- → mozilla1.8beta2
Assignee | ||
Comment 1•19 years ago
|
||
Now or never.
Flags: blocking1.8b3?
Target Milestone: mozilla1.8beta2 → mozilla1.8beta3
Assignee | ||
Comment 2•19 years ago
|
||
Assignee: bugs → bugs.mano
Attachment #187377 -
Flags: second-review?(mscott)
Attachment #187377 -
Flags: first-review?(mconnor)
Comment 3•19 years ago
|
||
Comment on attachment 187377 [details] [diff] [review] patch r=me, but please also update the various wiki docs on the prefwindow binding. also, there's a typo buried in the patch you need to fix @@ -269 +269 @@ - <menuitem value="20" label="20"/> + <menuitem value="20" label="20"/>w
Attachment #187377 -
Flags: first-review?(mconnor) → first-review+
Assignee | ||
Comment 4•19 years ago
|
||
Comment on attachment 187377 [details] [diff] [review] patch OK, thanks.
Attachment #187377 -
Flags: approval-aviary1.1a2?
Assignee | ||
Comment 5•19 years ago
|
||
Scott, could you please review the mail/ part of this patch? We should land it before b3.
Updated•19 years ago
|
Flags: blocking1.8b3? → blocking1.8b3+
Whiteboard: needs review mscott
Updated•19 years ago
|
Attachment #187377 -
Flags: second-review?(mscott) → second-review+
Updated•19 years ago
|
Attachment #187377 -
Flags: approval-aviary1.1a2? → approval-aviary1.1a2+
Assignee | ||
Comment 6•19 years ago
|
||
fixed.
Status: ASSIGNED → RESOLVED
Closed: 19 years ago
Resolution: --- → FIXED
Whiteboard: needs review mscott
Comment 7•19 years ago
|
||
Is there any reason you decided to keep event's type "preferenceread" and "preferencewrite"? http://lxr.mozilla.org/seamonkey/source/toolkit/content/widgets/preferences.xml#329
You need to log in
before you can comment on or make changes to this bug.
Description
•