LayoutTests:

        Reviewed by John.

        Test for for <rdar://problem/5393798> 100% reproducible crash in WebCore::Scrollbar::setValue

        * fast/events/mousedown_in_scrollbar-expected.txt: Added.
        * fast/events/mousedown_in_scrollbar.html: Added.

WebCore:

        Reviewed by John.

        Fix for <rdar://problem/5393798> 100% reproducible crash in WebCore::Scrollbar::setValue

        * page/EventHandler.cpp: (WebCore::EventHandler::handleMousePressEvent):
          If the hit testing originally determined the event was in a scrollbar, 
          refetch the MouseEventWithHitTestResults in case the scrollbar widget was destroyed when the mouse event was handled.



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