Closed Bug 310194 Opened 20 years ago Closed 20 years ago

Change events can get fired multiple times for preference elements

Categories

(Firefox :: Settings UI, defect)

defect
Not set
normal

Tracking

()

RESOLVED FIXED

People

(Reporter: mossop, Assigned: mossop)

Details

(Keywords: fixed1.8)

Attachments

(1 file)

In some situations since bug 308966 preference elements can receive change events twice for the same change and can also receive change events when no change has occured.
Status: NEW → ASSIGNED
This changes the setter to check for an actual change of value before firing the event. It also moves the event fire to be in just one place to stop it getting called twice.
Attachment #197584 - Flags: review?(mconnor)
Comment on attachment 197584 [details] [diff] [review] Cleanup event firing we should get this in on branch ASAP, this is a new widget we should get as clean as we can...
Attachment #197584 - Flags: review?(mconnor) → review+
Trunk: mozilla/toolkit/content/widgets/preferences.xml; new revision: 1.41;
Status: ASSIGNED → RESOLVED
Closed: 20 years ago
Flags: blocking1.8b5?
Resolution: --- → FIXED
Attachment #197584 - Flags: approval1.8b5? → approval1.8b5+
Whiteboard: [checkin needed][a+]
gavin, this needs to get i nASAP or the approval may go away.
I probably won't be able to check this in today. Asaf, do you mind checking this in on the branch?
Forgot to mark this, timeless checked it in a short while ago.
Flags: blocking1.8b5?
Whiteboard: [checkin needed][a+] → fixed1.8
Keywords: fixed1.8
Whiteboard: fixed1.8
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: