Closed Bug 18066 Opened 27 years ago Closed 27 years ago

[mlk] unconditional addref in AddEventListener()

Categories

(Core :: DOM: Events, defect, P1)

defect

Tracking

()

VERIFIED FIXED

People

(Reporter: waterson, Assigned: waterson)

References

()

Details

Attachments

(1 file)

When the same listener is added >1 time to an event listener manager, a reference to the listener is leaked.
Status: NEW → ASSIGNED
Priority: P3 → P1
Target Milestone: M12
Attached patch proposed fix — — Splinter Review
joki/vidur, could you take a look at my proposed fix and let me know if it looks ok?
Depends on: 18067
need to fix nsMenuBarFrame before checking in this fix: it incorrectly tries to tread a listener as an non-refcount object.
*** Bug 10178 has been marked as a duplicate of this bug. ***
*** Bug 12115 has been marked as a duplicate of this bug. ***
Yeah, that looks fine. Though in looking at it I noticed another leak in the function in question. I'll get that one.
Status: ASSIGNED → RESOLVED
Closed: 27 years ago
Resolution: --- → FIXED
For what it's worth: Note bug 49017 "RFE: EventListener objects not accepted by addEventListener" Note bug 53640 "addEventListener() for event capture not always registering" Also bug 18066 "[mlk] unconditional addref in AddEventListener()" [FIXED]
OOPS! Added to wrong bug; PLEASE DISREGARD ABOVE ENTRY
Component: DOM Level 2 → DOM Events
QA Contact Update
QA Contact: vidur → vladimire
The file doesnt exist any more... :) verifying.
Status: RESOLVED → VERIFIED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: