[Webkit-unassigned] [Bug 74775] WebKit editing throws exception when monochrome color dragged onto text

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Wed Dec 21 09:41:54 PST 2011


https://bugs.webkit.org/show_bug.cgi?id=74775





--- Comment #3 from Daniel Jalkut <jalkut at red-sweater.com>  2011-12-21 09:41:54 PST ---
Created an attachment (id=120185)
 --> (https://bugs.webkit.org/attachment.cgi?id=120185&action=review)
Fix the NSColor exception thrown by converting to RGB colorspace if necessary

The attached patch addresses the problem by checking ahead of time whether the provided color uses an RGB colorspace model. If it doesn't, it converts the color to RGB colorspace before accessing its components.

I don't think this affects layout tests, and I'm not sure if there is a straightforward way to cover the bug using any other test mechanism. In IRC it was suggested that a manual test may be appropriate?

I built and tested the fix on Lion.

-- 
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.



More information about the webkit-unassigned mailing list