Open Bug 198657 Opened 23 years ago Updated 4 years ago

Make HandleDOMEvent create DOMEvent earlier

Categories

(Core :: DOM: Events, defect)

x86
Windows XP
defect

Tracking

()

People

(Reporter: john, Unassigned)

References

(Depends on 1 open bug)

Details

We should make HandleDOMEvent create the DOMEvent non-lazily (as early as possible). Not doing this causes a problem with retargeting (retargeting currently uses the parent instead of the target if the DOMEvent does not yet exist). Doing this also gets us closer to an eventual goal of not even passing in an nsEvent--just pass in an nsIDOMEvent. And done right, it makes the method less scary to look at. This should not increase our pageload time or JS times because DOMEvents are already arena-allocated.
Creating a DOMEvent earlier blocks the final proposed solution to bug 196755, retargeting algorithm.
Blocks: 196755
Depends on: 216841
QA Contact: desale → events

The bug assignee didn't login in Bugzilla in the last 7 months, so the assignee is being reset.

Assignee: john → nobody
Severity: normal → S3
You need to log in before you can comment on or make changes to this bug.