Closed
Bug 72010
Opened 25 years ago
Closed 25 years ago
mutation event listeners on document don't work
Categories
(Core :: DOM: Events, defect, P2)
Core
DOM: Events
Tracking
()
VERIFIED
FIXED
mozilla0.9
People
(Reporter: alex, Assigned: dr)
Details
Attachments
(2 files)
1.14 KB,
patch
|
Details | Diff | Splinter Review | |
953 bytes,
patch
|
Details | Diff | Splinter Review |
document.addEventListener( <<any mutation event>>, ... )
doesn't work in xul, html and xml.
![]() |
Reporter | |
Comment 1•25 years ago
|
||
![]() |
Reporter | |
Comment 2•25 years ago
|
||
![]() |
||
Comment 3•25 years ago
|
||
This is hyatt's baby.
![]() |
||
Comment 4•25 years ago
|
||
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
![]() |
Reporter | |
Comment 5•25 years ago
|
||
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.
![]() |
||
Updated•25 years ago
|
Status: NEW → ASSIGNED
![]() |
||
Comment 6•25 years ago
|
||
Yeah, all content nodes do that, but the doc isn't. Should be trivial to fix.
![]() |
||
Comment 8•25 years ago
|
||
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
![]() |
||
Comment 10•25 years ago
|
||
Yeah, it's good to go.
![]() |
Assignee | |
Comment 11•25 years ago
|
||
fix checked in.
Status: ASSIGNED → RESOLVED
Closed: 25 years ago
Resolution: --- → FIXED
![]() |
||
Comment 12•25 years ago
|
||
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.
Description
•