2010-10-25  Cris Neckar  <cdn@chromium.org>

        Reviewed by Dimitri Glazkov.

        Added check to ensure that events with the type "mousedown" are mouse events before dispatching.
        https://bugs.webkit.org/show_bug.cgi?id=48159

        Test: fast/events/keyboardevent-mousedown-crash.html

        * dom/Node.cpp:
        (WebCore::Node::defaultEventHandler):
2010-10-25  Cris Neckar  <cdn@chromium.org>

        Reviewed by Dimitri Glazkov.

        Tests for a crash when an event with the type "mousedown" is not a MouseEvent.
        https://bugs.webkit.org/show_bug.cgi?id=48159

        * fast/events/keyboardevent-mousedown-crash-expected.txt: Added.
        * fast/events/keyboardevent-mousedown-crash.html: Added.


git-svn-id: http://svn.webkit.org/repository/webkit/trunk@70473 268f45cc-cd09-0410-ab3c-d52691b4dbfc
5 files changed