WebKit editing throws exception when monochrome color dragged onto text
authorcommit-queue@webkit.org <commit-queue@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Thu, 22 Dec 2011 10:19:42 +0000 (10:19 +0000)
committercommit-queue@webkit.org <commit-queue@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Thu, 22 Dec 2011 10:19:42 +0000 (10:19 +0000)
commitb79fef4f670678a42e4ef17636fdfd1e8a4c5510
treef9684f71b1be0218e75cc81b493d8ff59907f039
parent3de0845f4ed28ac733fb0c5d8ee09576bff85d53
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: https://svn.webkit.org/repository/webkit/trunk@103507 268f45cc-cd09-0410-ab3c-d52691b4dbfc
ChangeLog
ManualTests/drag-color-to-contenteditable.html [new file with mode: 0644]
Source/WebCore/ChangeLog
Source/WebCore/platform/mac/DragDataMac.mm