toDataURL() on a display-p3 canvas seems to work for an image/png destination but not image/jpeg.
<rdar://82948457>
<rdar://problem/83041091>
Created attachment 438017 [details] Patch with squashed dependencies for EWS
This patch modifies the imported WPT tests. Please ensure that any changes on the tests (not coming from a WPT import) are exported to WPT. Please see https://trac.webkit.org/wiki/WPTExportProcess
Created attachment 438018 [details] Patch with squashed dependencies for EWS
Comment on attachment 438018 [details] Patch with squashed dependencies for EWS View in context: https://bugs.webkit.org/attachment.cgi?id=438018&action=review > Source/WebCore/platform/graphics/cg/ImageBufferCGBackend.cpp:99 > + if (CGColorSpaceGetModel(imageBufferColorSpace.platformColorSpace()) != kCGColorSpaceModelRGB) > + return sRGBColorSpaceRef(); This is another spot where CGBitmapContextCreateForFlatteningImage might make sense.
Created attachment 438441 [details] Patch
Submitted web-platform-tests pull request: https://github.com/web-platform-tests/wpt/pull/30838
ChangeLog entry in LayoutTests/imported/w3c/ChangeLog contains OOPS!.
Created attachment 438443 [details] Patch
Committed r282634 (241791@main): <https://commits.webkit.org/241791@main> All reviewed patches have been landed. Closing bug and clearing flags on attachment 438443 [details].