Branch: refs/heads/main
Home: https://github.com/WebKit/WebKit
Commit: fe7b490a81f6cfe6c9cb502acc71ed2ce479cceb
https://github.com/WebKit/WebKit/commit/fe7b490a81f6cfe6c9cb502acc71ed2ce479cceb
Author: Ahmad Saleem <[email protected]>
Date: 2026-07-02 (Thu, 02 Jul 2026)
Changed paths:
M Source/WebCore/inspector/InspectorFrontendHost.cpp
Log Message:
-----------
[Web Inspector] Inspector color picker always force-converts picked colors to
DisplayP3
https://bugs.webkit.org/show_bug.cgi?id=318415
rdar://181201503
Reviewed by Devin Rousso.
The lossy-conversion guard in pickColorFromScreen() used || instead of &&.
A color can't be both SRGB and DisplayP3, so the check was always true and
every picked color went through toColorTypeLossy<DisplayP3<float>>(), leaving
the lossless serializationForCSS(*color) branch dead. Use && so only colors
that are neither sRGB nor DisplayP3 are converted.
* Source/WebCore/inspector/InspectorFrontendHost.cpp:
(WebCore::InspectorFrontendHost::pickColorFromScreen):
Canonical link: https://commits.webkit.org/316419@main
To unsubscribe from these emails, change your notification settings at
https://github.com/WebKit/WebKit/settings/notifications