LayoutTests:
Reviewed by Eric.
- test for http://bugzilla.opendarwin.org/show_bug.cgi?id=6711
crash if an event is dispatched to a listener that uses handleEvent
* fast/events/dispatch-to-handle-event.html: Added.
* fast/events/dispatch-to-handle-event-expected.txt: Added.
WebCore:
Reviewed by Eric.
- fix http://bugzilla.opendarwin.org/show_bug.cgi?id=6711
crash if an event is dispatched to a listener that uses handleEvent
Test: fast/events/dispatch-to-handle-event.html
* khtml/ecma/kjs_events.cpp: (KJS::JSAbstractEventListener::handleEvent):
Remove boolean that is always false, and correct the one place that was
checking it to check the correct pointer instead.
git-svn-id: https://svn.webkit.org/repository/webkit/trunk@12444
268f45cc-cd09-0410-ab3c-
d52691b4dbfc