Bug 75662

Summary: Pixel results from DumpRenderTree and WebKitTestRunner don't match because of colorspace issues
Product: WebKit Reporter: Simon Fraser (smfr) <simon.fraser>
Component: Tools / TestsAssignee: Simon Fraser (smfr) <simon.fraser>
Status: RESOLVED FIXED    
Severity: Normal CC: ap, darin, jonlee, mitz, simon.fraser, tony
Priority: P2 Keywords: InRadar
Version: 528+ (Nightly build)   
Hardware: Unspecified   
OS: Unspecified   
Attachments:
Description Flags
Patch mitz: review+

Description Simon Fraser (smfr) 2012-01-05 15:37:10 PST
Pixel results from DumpRenderTree and WebKitTestRunner don't match, suffer colorspace issues
Comment 1 Simon Fraser (smfr) 2012-01-05 15:42:02 PST
Created attachment 121354 [details]
Patch
Comment 2 Simon Fraser (smfr) 2012-01-05 15:42:35 PST
<rdar://problem/10640723>
Comment 3 Alexey Proskuryakov 2012-01-05 23:06:58 PST
Comment on attachment 121354 [details]
Patch

How is this related to bug 72424?
Comment 4 Simon Fraser (smfr) 2012-01-06 09:20:26 PST
The patch here fixes bug 72424 too.
Comment 5 Simon Fraser (smfr) 2012-01-06 09:20:30 PST
*** Bug 72424 has been marked as a duplicate of this bug. ***
Comment 6 mitz 2012-01-06 13:56:30 PST
Comment on attachment 121354 [details]
Patch

View in context: https://bugs.webkit.org/attachment.cgi?id=121354&action=review

> Tools/ChangeLog:3
> +        Pixel results from DumpRenderTree and WebKitTestRunner don't match, suffer colorspace issues

I think it’s us who suffer. The pixel results are secretly enjoying it.

> Tools/DumpRenderTree/mac/PixelDumpSupportMac.mm:55
> +    // Creating this bitmap in the device color space should prevent any color conversion when the image of the web view is drawn into it.

Can you say “prevents” instead of “should prevent”? Does it not really do what it should do?
Comment 7 Simon Fraser (smfr) 2012-01-06 15:35:23 PST
http://trac.webkit.org/changeset/104351
Comment 8 Darin Adler 2012-01-08 12:15:25 PST
Wow, what a great thing to do! Wish we had done this years ago.