Closed Bug 907594 Opened 11 years ago Closed 11 years ago

Pref-change observer isn't being called.

Categories

(Toolkit :: Password Manager, defect)

defect
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla26
Tracking Status
firefox23 --- unaffected
firefox24 --- fixed
firefox25 --- fixed
firefox26 --- fixed

People

(Reporter: Dolske, Assigned: Dolske)

References

Details

(Whiteboard: [qa-])

Attachments

(1 file)

Attached patch Patch v.1Splinter Review
Found while debugging bug 355063 comment 62. From IRC discussion it seems this is likely a GC issue -- the object returned by getBranch() gets GC'd and takes the observer with it. I was assuming it was just exposing some underlying structure in the native libpref code. :(

Fix is simple, will probably want to uplift this.
Attachment #793360 - Flags: review?(mnoorenberghe+bmo)
Attachment #793360 - Flags: review?(mnoorenberghe+bmo) → review+
Comment on attachment 793360 [details] [diff] [review]
Patch v.1

[Approval Request Comment]
Bug caused by (feature/regressing bug #): Bug 839961 introduced this code
User impact if declined: Main impact is that the "remember passwords" UI checkbox is no longer live, changes to it wouldn't take effect until restarting the browser. Also notable is that the pref to enable debug logging is also affected in the same way, which is slightly annoying for getting data from bug reporters.
Testing completed (on m-c, etc.):  Manually in the course of debugging the problem, otherwise password manager is well covered by tests.
Risk to taking this patch (and alternatives if risky): Extremely low. It's trivial, and restores functionality that was working before.
String or IDL/UUID changes made by this patch: None
Attachment #793360 - Flags: approval-mozilla-beta?
Attachment #793360 - Flags: approval-mozilla-aurora?
https://hg.mozilla.org/mozilla-central/rev/e0f58fd2d9ba
Status: NEW → RESOLVED
Closed: 11 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla26
Attachment #793360 - Flags: approval-mozilla-beta?
Attachment #793360 - Flags: approval-mozilla-beta+
Attachment #793360 - Flags: approval-mozilla-aurora?
Attachment #793360 - Flags: approval-mozilla-aurora+
Assuming no QA needed here. Please remove [qa-] from the whiteboard and add the verifyme keyword if this needs QA.
Whiteboard: [qa-]
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: