Open Bug 1882239 Opened 1 year ago Updated 2 months ago

Compatibility with Windows 11 Advanced Color management

Categories

(Core :: Graphics: Color Management, enhancement)

Firefox 123
enhancement

Tracking

()

UNCONFIRMED

People

(Reporter: potato.omelette, Unassigned)

References

(Blocks 1 open bug)

Details

User Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:123.0) Gecko/20100101 Firefox/123.0

Steps to reproduce:

Open an image that has a wide gamut color space tagged.

Actual results:

The wide gamut image was transformed to sRGB and rendered with restricted gamut.

Expected results:

Firefox should ask Windows about the color profile of my display using the new "Advanced Color" feature. More information is available here: https://learn.microsoft.com/en-us/windows/win32/wcs/advanced-color-icc-profiles

The Bugbug bot thinks this bug should belong to the 'Core::Widget: Win32' component, and is moving the bug to that component. Please correct in case you think the bot is wrong.

Component: Untriaged → Widget: Win32
Product: Firefox → Core
Component: Widget: Win32 → Graphics: Color Management

Chrome is not compatible with Windows 11 "Advanced Color" out of the box, but setting the Force color profile to scRGB linear (HDR where available) in chrome://flags fixes the issue. See the relevant chrome issue https://issues.chromium.org/issues/328856550. There, the comment #10 contains information that may be relevant to Firefox as well:

"Wide Color Gamut" is the term for when the display is still set to SDR and "Automatically manage colors for apps" (aka Automatic Color Management) is enabled.

I know of two ways to detect WCG mode. The first is with the WinRT class Windows.Graphics.Display.DisplayInformation. Use the GetAdvancedColorKind() method, then retrieve its CurrentAdvancedColorKind property. This is what I use in Paint.NET 5.1.

The other way, which I haven't used myself, is via DISPLAYCONFIG_GET_ADVANCED_COLOR_INFO, I think you use it with DisplayConfigGetDeviceInfo(). I don't know which version of Windows 11 this was introduced in, possibly v22H2 but definitely available in v24H2.

Blocks: 1984017
You need to log in before you can comment on or make changes to this bug.