Changeset 87366 in webkit


Ignore:
Timestamp:
May 26, 2011 12:15:36 AM (13 years ago)
Author:
commit-queue@webkit.org
Message:

2011-05-26 Igor Oliveira <igor.oliveira@openbossa.org>

Reviewed by Andreas Kling.

drag-not-loaded-image.html test crashes when WebKit is built with debug option
https://bugs.webkit.org/show_bug.cgi?id=61480

Checks if image has content before starting to drag.

  • page/DragController.cpp: (WebCore::DragController::startDrag):
Location:
trunk/Source/WebCore
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebCore/ChangeLog

    r87365 r87366  
     12011-05-26  Igor Oliveira  <igor.oliveira@openbossa.org>
     2
     3        Reviewed by Andreas Kling.
     4
     5        drag-not-loaded-image.html test crashes when WebKit is built with debug option
     6        https://bugs.webkit.org/show_bug.cgi?id=61480
     7
     8        Checks if image has content before starting to drag.
     9
     10        * page/DragController.cpp:
     11        (WebCore::DragController::startDrag):
     12
    1132011-05-26  Alok Priyadarshi  <alokp@chromium.org>
    214
  • trunk/Source/WebCore/page/DragController.cpp

    r86601 r87366  
    732732        }
    733733        doSystemDrag(dragImage, dragLoc, dragOrigin, clipboard, src, false);
    734     } else if (!imageURL.isEmpty() && node && node->isElementNode() && image
     734    } else if (!imageURL.isEmpty() && node && node->isElementNode() && image && !image->isNull()
    735735               && (m_dragSourceAction & DragSourceActionImage)) {
    736736        // We shouldn't be starting a drag for an image that can't provide an extension.
Note: See TracChangeset for help on using the changeset viewer.