Bug 254670 - Remove Quirks::needsHDRPixelDepthQuirk()
Summary: Remove Quirks::needsHDRPixelDepthQuirk()
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: DOM (show other bugs)
Version: WebKit Nightly Build
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Anne van Kesteren
URL:
Keywords: InRadar
Depends on:
Blocks:
 
Reported: 2023-03-29 09:14 PDT by Anne van Kesteren
Modified: 2023-03-30 08:51 PDT (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Anne van Kesteren 2023-03-29 09:14:21 PDT
Code inspection shows YouTube no longer needs it:

> if (b.video 
>     && (b.video.isHdr() || "bt2020" === b.video.primaries) 
>     && !(DD(a, ED.EOTF) || window.matchMedia && (window.matchMedia("(dynamic-range: high), (video-dynamic-range: high)").matches
>       || 24 < window.screen.pixelDepth && window.matchMedia("(color-gamut: p3)").matches)))
Comment 1 Radar WebKit Bug Importer 2023-03-29 09:24:35 PDT
<rdar://problem/107370756>
Comment 2 Anne van Kesteren 2023-03-29 09:26:27 PDT
Pull request: https://github.com/WebKit/WebKit/pull/12119
Comment 3 EWS 2023-03-30 08:51:15 PDT
Committed 262330@main (95d938e7a998): <https://commits.webkit.org/262330@main>

Reviewed commits have been landed. Closing PR #12119 and removing active labels.