WebKit editing throws exception when monochrome color dragged onto text
https://bugs.webkit.org/show_bug.cgi?id=74775

Patch by Daniel Jalkut <jalkut@red-sweater.com> on 2011-12-22
Reviewed by Ryosuke Niwa.

.:

* ManualTests/drag-color-to-contenteditable.html: Added.

Source/WebCore:

Handle non-RGB colorspace colors in the Mac platform drag manager. Fixes NSException thrown
when dragging monochrome colors to contentEditable regions.

Manual test added to trunk/ManualTests/drag-color-to-contenteditable.html

* platform/mac/DragDataMac.mm:
(WebCore::DragData::asColor):

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