Open Bug 1880729 Opened 1 year ago Updated 8 months ago

gfx.color_management.mode=1 causes incorrect canvas ImageData

Categories

(Core :: Graphics: Canvas2D, defect)

Firefox 124
defect

Tracking

()

UNCONFIRMED

People

(Reporter: me+bugzilla, Unassigned)

References

(Blocks 1 open bug)

Details

Attachments

(1 file)

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

Steps to reproduce:

Prerequisites:

  • Wide color gamut display (or a display with a non-sRGB color profile assigned)

  • gfx.color_management.native_srgb=false (default on Windows)

  • gfx.color_management.mode=1

  • On Windows 10/11: HDR (advanced color management) disabled

  • On Windows 11: auto color management disabled/unsupported, or "Use legacy ICC color management" checked in EXE compatibility properties if ACM is enabled

  • Visit https://jsfiddle.net/0bspzx97/1/

  • Hover over a color

Actual results:

Hovered color is rgba(233, 64, 35, 1) (or some other result depending on the primaries of the display/color profile)

This breaks websites like windy.com

Expected results:

Hovered color is rgba(255, 0, 0, 1)

Blocks: 455077

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

Component: Untriaged → Graphics: Canvas2D
Product: Firefox → Core

The severity field is not set for this bug.
:lsalzman, could you have a look please?

For more information, please visit BugBot documentation.

Flags: needinfo?(lsalzman)
Severity: -- → S3
Flags: needinfo?(lsalzman)
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: