Changeset 173664 in webkit


Ignore:
Timestamp:
Sep 16, 2014 11:09:21 AM (10 years ago)
Author:
jer.noble@apple.com
Message:

Videos with controls enabled never receive 'dragstart' events.
https://bugs.webkit.org/show_bug.cgi?id=136837

Reviewed by Eric Carlson.

Fixes a crash regression introduced by r173631. Node::contains() has an interesting property of returning false
if this is NULL. Rather than depending on this behavior, explicitly NULL-check state.source and bail early.

  • page/DragController.cpp:

(WebCore::DragController::startDrag):

Location:
trunk/Source/WebCore
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebCore/ChangeLog

    r173660 r173664  
     12014-09-16  Jer Noble  <jer.noble@apple.com>
     2
     3        Videos with controls enabled never receive 'dragstart' events.
     4        https://bugs.webkit.org/show_bug.cgi?id=136837
     5
     6        Reviewed by Eric Carlson.
     7
     8        Fixes a crash regression introduced by r173631. Node::contains() has an interesting property of returning false
     9        if `this` is NULL. Rather than depending on this behavior, explicitly NULL-check state.source and bail early.
     10
     11        * page/DragController.cpp:
     12        (WebCore::DragController::startDrag):
     13
    1142014-09-16  Csaba Osztrogonác  <ossy@webkit.org>
    215
  • trunk/Source/WebCore/page/DragController.cpp

    r173632 r173664  
    718718bool DragController::startDrag(Frame& src, const DragState& state, DragOperation srcOp, const PlatformMouseEvent& dragEvent, const IntPoint& dragOrigin)
    719719{
    720     if (!src.view() || !src.contentRenderer())
     720    if (!src.view() || !src.contentRenderer() || !state.source)
    721721        return false;
    722722
Note: See TracChangeset for help on using the changeset viewer.