Closed Bug 76870 Opened 23 years ago Closed 23 years ago

crash on appending element in the event handler of a mutation event

Categories

(Core :: DOM: Events, defect)

x86
Windows 98
defect
Not set
normal

Tracking

()

VERIFIED DUPLICATE of bug 77271
mozilla1.0.1

People

(Reporter: vladimire, Assigned: hyatt)

References

Details

Attachments

(1 file)

If you have a DOMNodeInserted event listener that calls appendChild Netscape 6 
crashes. I thought this might be because there is an infinite loop and event 
handler is calling itself, and maybe it is so, but I did add a flag to check 
whether the event has been called or not, and it is still crashing. 
 To reproduce open the attached testcase and click the button. Watch it crash.
Attached file Testcase
Cool.  Looks pretty infinite loopy to me from the stack trace.  More fun for 
hyatt.
Assignee: joki → hyatt
Status: NEW → ASSIGNED
Target Milestone: --- → mozilla1.0
Target Milestone: mozilla1.0 → mozilla1.0.1
Looking at the source code to the attachment, I feel very strongly this bug is a
duplicate of bug 77271, which covers a broader scope but essentially the same
issue imho.

However, after a quick discussion in #bugweek, I've decided to take a safer
route and mark this bug dependent on 77271.  Opinions welcome.
Depends on: 77271
Oh yeah of course, except this was created before :)

*** This bug has been marked as a duplicate of 77271 ***
Status: ASSIGNED → RESOLVED
Closed: 23 years ago
Resolution: --- → DUPLICATE
verifying
Status: RESOLVED → VERIFIED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: