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: svn://svn.chromium.org/blink/trunk@24942 bbb929c8-8fbe-4397-9dbb-9b2b20218538
5 files changed
tree: 80a6cf2d8ab3d1dad623d60e9ecbc67de03d486a
  1. third_party/