Closed
Bug 474988
Opened 16 years ago
Closed 15 years ago
Mismatched adds and removes of install listeners will fail
Categories
(Toolkit :: Add-ons Manager, defect)
Toolkit
Add-ons Manager
Tracking
()
RESOLVED
FIXED
mozilla1.9.2a1
People
(Reporter: mossop, Assigned: mossop)
Details
(Keywords: memory-leak)
Attachments
(1 file, 2 obsolete files)
16.85 KB,
patch
|
robert.strong.bugs
:
review+
|
Details | Diff | Splinter Review |
If calls to removeInstallListenerAt aren't in the exact opposite order to the calls to addInstallListener then we'll remove the wrong install listener and in some cases end up keeping references to install listeners we shouldn't leading to memory leaks.
Assignee | ||
Comment 1•16 years ago
|
||
This is kind of lame but I can't see anything particularly easier without changing the API.
Attachment #358396 -
Flags: review?(robert.bugzilla)
Assignee | ||
Comment 2•16 years ago
|
||
Forgot about these
Attachment #358396 -
Attachment is obsolete: true
Attachment #358404 -
Flags: review?(robert.bugzilla)
Attachment #358396 -
Flags: review?(robert.bugzilla)
Assignee | ||
Comment 3•16 years ago
|
||
Comment on attachment 358404 [details] [diff] [review] now with added tests Actually I want to add some exception protection around these calls too.
Attachment #358404 -
Attachment is obsolete: true
Attachment #358404 -
Flags: review?(robert.bugzilla)
Assignee | ||
Comment 4•16 years ago
|
||
This adds a helper method for calling the listeners to simplify things a bit. Each call is wrapped with exception handling to prevent a listener from breaking the EM or other listeners.
Attachment #358829 -
Flags: review?(robert.bugzilla)
Updated•16 years ago
|
Attachment #358829 -
Flags: review?(robert.bugzilla) → review+
Comment 5•16 years ago
|
||
Comment on attachment 358829 [details] [diff] [review] patch rev 2 Nice!
Assignee | ||
Updated•16 years ago
|
Status: NEW → ASSIGNED
Assignee | ||
Comment 6•15 years ago
|
||
Pushed: http://hg.mozilla.org/mozilla-central/rev/501b9c8c2f2b
Status: ASSIGNED → RESOLVED
Closed: 15 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla1.9.2a1
You need to log in
before you can comment on or make changes to this bug.
Description
•