Closed Bug 72010 Opened 24 years ago Closed 24 years ago

mutation event listeners on document don't work

Categories

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

defect

Tracking

()

VERIFIED FIXED
mozilla0.9

People

(Reporter: alex, Assigned: dr)

Details

Attachments

(2 files)

document.addEventListener( <<any mutation event>>, ... ) doesn't work in xul, html and xml.
This is hyatt's baby.
I agree, to the extent that I'm going to assign it to him. Hyatt, if you want a review gimme a call but I'll let you make the call on any patch affecting mutation events since you'd know how to test this better than I. So what is the bug, exactly. The mutation listener bit isn't getting set in the case of listeners on the doc?
Assignee: joki → hyatt
That's right. The bit isn't being set, because the listener manager of the doc can't get a pointer to the window in nsEventListenerManager::AddEventListener(.) That is because the document fails to set itself as mTarget on its listener manager when it creates it.
Status: NEW → ASSIGNED
Yeah, all content nodes do that, but the doc isn't. Should be trivial to fix.
Targeting...
Whiteboard: have patch
Target Milestone: --- → mozilla0.9
Reassigning to dr. sr=hyatt on the patch.
Assignee: hyatt → dr
Status: ASSIGNED → NEW
accepting. hyatt: did you just want me to r= and check in?
Status: NEW → ASSIGNED
Keywords: patch
OS: Windows 2000 → All
Priority: -- → P2
Hardware: PC → All
Whiteboard: have patch
Yeah, it's good to go.
fix checked in.
Status: ASSIGNED → RESOLVED
Closed: 24 years ago
Resolution: --- → FIXED
Verifying on build 2001-04-10-04-trunk Windows 98
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: