Bug 242698 - REGRESSION: Colors are way off on http/tests/media/hls/hls-hdr-switch.html
Summary: REGRESSION: Colors are way off on http/tests/media/hls/hls-hdr-switch.html
Status: NEW
Alias: None
Product: WebKit
Classification: Unclassified
Component: Media (show other bugs)
Version: WebKit Nightly Build
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Nobody
URL:
Keywords: InRadar
Depends on:
Blocks:
 
Reported: 2022-07-13 10:18 PDT by Alexey Proskuryakov
Modified: 2022-07-13 16:31 PDT (History)
4 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Alexey Proskuryakov 2022-07-13 10:18:26 PDT
http/tests/media/hls/hls-hdr-switch.html used to pass on macOS Big Sur as of 2021-04-15, before we broke it with PHP to Python conversion. Fixing that, I see that it fails in a new way.

This test waits for a video drawn to canvas to become red, and then it waits for it to become green. The test allows for up to +-20 from (255, 0, 0, 255) and (0, 255, 0, 255) for those.

But what I'm observing on my machine and on EWS too is (232,39,0,255) and (67,251,0,255). This is roughly the colors I see on the screen indeed, when running r-w-t- with --show-window. Getting these exact colors on Big Sur with both WK1 and WK2.

As an aside, this test fails in a different way on macOS Ventura beta, I'm getting (0, 0, 0, 0). But this bug tracks the colors being off.
Comment 1 Radar WebKit Bug Importer 2022-07-13 10:18:37 PDT
<rdar://problem/96959572>
Comment 2 Alexey Proskuryakov 2022-07-13 10:27:43 PDT
Making the tolerance higher in bug 242559.
Comment 3 Alexey Proskuryakov 2022-07-13 16:31:49 PDT
I'm actually seeing exactly the same numbers on macOS Monterey (12.5). There was a regression on this major version introduced at a different time, but it must have been fixed.