Support reftests using DisplayP3 backing stores rather than sRGB to enable testing non-sRGB functionality
Created attachment 427533 [details] WIP (only supports non-composited WebKitLegacy macOS)
For modern WebKit and composited WebKitLegacy content the issue is that CGWindowListCreateImage() doesn't seem to be return a CGImageRef with the right color space even though the window has a DisplayP3 color space on it. I will check with the window server and CA folks to see if this is expected and/or there is any work around. If there isn't, we could make this new flag incompatible with compositing and use the FrameSnapshotting code when testing non-sRGB, but that seems less than ideal.
<rdar://problem/77722485>