Bug 141260

Summary: LayoutTestHelper should set the color profile of all displays
Product: WebKit Reporter: Simon Fraser (smfr) <simon.fraser>
Component: New BugsAssignee: Simon Fraser (smfr) <simon.fraser>
Status: RESOLVED FIXED    
Severity: Normal CC: ap, simon.fraser, thorton
Priority: P2    
Version: 528+ (Nightly build)   
Hardware: Unspecified   
OS: Unspecified   
Attachments:
Description Flags
Patch
none
Patch
none
No more ARC thorton: review+

Description Simon Fraser (smfr) 2015-02-04 14:01:03 PST
LayoutTestHelper should set the color profile of all displays
Comment 1 Simon Fraser (smfr) 2015-02-04 14:03:56 PST
Created attachment 246046 [details]
Patch
Comment 2 Simon Fraser (smfr) 2015-02-04 14:12:14 PST
Created attachment 246047 [details]
Patch
Comment 3 Tim Horton 2015-02-04 14:14:15 PST
Comment on attachment 246046 [details]
Patch

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

> Tools/DumpRenderTree/mac/LayoutTestHelper.m:58
> +    CFUUIDRef uuid = CFUUIDCreateFromString(kCFAllocatorDefault, (__bridge CFStringRef)displayUUIDString);

Leak.

> Tools/DumpRenderTree/mac/LayoutTestHelper.m:82
> +    static const uint32_t maxDisplayCount = 10;

:|

> Tools/DumpRenderTree/mac/LayoutTestHelper.m:98
> +        CFUUIDRef displayUUIDRef = CGDisplayCreateUUIDFromDisplayID(displayIDs[i]);

leak here too

> Tools/DumpRenderTree/mac/LayoutTestHelper.m:124
> +    CFUUIDRef uuid = CFUUIDCreateFromString(kCFAllocatorDefault, (__bridge CFStringRef)displayUUIDString);

yep

> Tools/DumpRenderTree/mac/LayoutTestHelper.m:132
> +    NSMutableDictionary* userColorProfiles = originalColorProfileURLs();

star's on the wrong side

> Tools/DumpRenderTree/mac/LayoutTestHelper.m:149
> +    // space of the display), we force the generic RGB color profile on all displays.

This should say SRGB.
Comment 4 Simon Fraser (smfr) 2015-02-04 14:30:53 PST
Created attachment 246052 [details]
No more ARC
Comment 5 Tim Horton 2015-02-04 14:34:22 PST
Comment on attachment 246052 [details]
No more ARC

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

> Tools/DumpRenderTree/mac/LayoutTestHelper.m:138
> +    NSMutableDictionary* userColorProfiles = originalColorProfileURLs();

Star's on the wrong side.

> Tools/DumpRenderTree/mac/LayoutTestHelper.m:155
> +    // space of the display), we force the generic sRGB color profile on all displays.

not generic :D
Comment 6 Simon Fraser (smfr) 2015-02-04 15:03:24 PST
https://trac.webkit.org/r179637