Closed Bug 275413 Opened 21 years ago Closed 21 years ago

onchange event handler gets called twice

Categories

(Core :: DOM: Events, defect)

x86
Linux
defect
Not set
normal

Tracking

()

RESOLVED DUPLICATE of bug 254238

People

(Reporter: db48x, Unassigned)

References

()

Details

(Keywords: regression)

Attachments

(1 file)

This page works fine in FF 1.0, but not in recent Mozilla or FF trunk builds. Using Venkman, I noticed that the event handler is being called twice. I could expect that to happen if the code modified the state of the checkbox, but in this case it doesn't.
This is unlikely to be a JavaScript Engine bug. Why did you assign it that way? Bouncing to DOM events. /be
Assignee: general → general
Component: JavaScript Engine → DOM: Events
QA Contact: pschwartau → ian
Most likely the same underlying problem as in bug 254238. Please make a small testcase and attach it here in case the page changes...
Depends on: 254238
I notice that in frame 12, aFlags is 1 the first time and 513 the second, so the second call is for the system load group (as PresShell::HandleEventInternal says). I didn't look look too much further, so I don't know why the second call to HandleDOMEvent also called the event handler. I probably ought to make a reduced testcase as well.
Thought I'd dup'd this already. Anyway, the patch in the other bug fixes it. *** This bug has been marked as a duplicate of 254238 ***
Status: NEW → RESOLVED
Closed: 21 years ago
No longer depends on: 254238
Resolution: --- → DUPLICATE
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: