Bug 228138

Summary: wide gamut colors in Web content not shown after moving window from sRGB to Display P3 screen until next repaint
Product: WebKit Reporter: Cameron McCormack (:heycam) <heycam>
Component: Layout and RenderingAssignee: Cameron McCormack (:heycam) <heycam>
Status: NEW ---    
Severity: Normal CC: bfulgham, simon.fraser, webkit-bug-importer, zalan
Priority: P2 Keywords: InRadar
Version: WebKit Local Build   
Hardware: Unspecified   
OS: Unspecified   
Attachments:
Description Flags
test
none
Patch simon.fraser: review+

Description Cameron McCormack (:heycam) 2021-07-20 21:30:45 PDT
Assuming this is a WebKit bug.  STR:

1. Have a machine with two displays, one Display P3 and the other sRGB.
2. Open a new Safari window on the sRGB display and load the attached test.  Notice the two red rectangles are the same color.
3. Move the window to the Display P3 display.  Notice the two rectangles are still the same color.
4. Press Cmd+R.  Notice the two rectangles are now different colors.

Forcing a repaint of the document also makes the display-p3 color show up correctly.
Comment 1 Cameron McCormack (:heycam) 2021-07-20 21:31:02 PDT
Created attachment 433919 [details]
test
Comment 2 Radar WebKit Bug Importer 2021-07-20 22:36:56 PDT
<rdar://problem/80878587>
Comment 3 Cameron McCormack (:heycam) 2021-07-20 22:41:53 PDT
Created attachment 433920 [details]
Patch