RESOLVED FIXED323637
CanvasRenderingContext2DBase::getImageData() may return a different color space than requested when sending single-color noise
https://bugs.webkit.org/show_bug.cgi?id=323637
Summary CanvasRenderingContext2DBase::getImageData() may return a different color spa...
Gerald Squelart
Reported 2026-09-07 15:33:51 PDT
Looking at the code in `CanvasRenderingContext2DBase::getImageData()`, there's a branch starting with `if (scriptContext && scriptContext->requiresScriptTrackingPrivacyProtection(ScriptTrackingPrivacyCategory::Canvas))` that just creates and returns a noisy image with an arbitrary color space (sRGB), ignoring settings->colorSpace if provided, against specs. rdar://183595301
Attachments
Gerald Squelart
Comment 1 2026-09-07 15:38:34 PDT
EWS
Comment 2 2026-09-07 21:24:07 PDT
Committed 320638@main (587e3a7c563e): <https://commits.webkit.org/320638@main> Reviewed commits have been landed. Closing PR #73440 and removing active labels.
Note You need to log in before you can comment on or make changes to this bug.