Branch: refs/heads/main
Home: https://github.com/WebKit/WebKit
Commit: 71298373ddaca1efef24adf5f3bf18fb2876db47
https://github.com/WebKit/WebKit/commit/71298373ddaca1efef24adf5f3bf18fb2876db47
Author: Said Abou-Hallawa <[email protected]>
Date: 2024-10-08 (Tue, 08 Oct 2024)
Changed paths:
M Source/WebCore/platform/graphics/cg/UTIRegistry.mm
M Source/WebCore/platform/network/mac/UTIUtilities.mm
Log Message:
-----------
RELEASE_ASSERT that ImageIO could install all the supported image decoders
https://bugs.webkit.org/show_bug.cgi?id=280990
rdar://135375243
Reviewed by Simon Fraser.
We needs to check the return value of CGImageSourceSetAllowableTypes().
If CGImageSourceSetAllowableTypes() could not install all the supported image
decoders for any reason, we should halt the process launch and fail its creation
safely.
Because the WebPage can be reinitialized (WTR for example), it is important to
call GImageSourceSetAllowableTypes() only once and only when a WebProcess is
initialized.
* Source/WebCore/platform/graphics/cg/UTIRegistry.mm:
(WebCore::defaultSupportedImageTypes):
* Source/WebCore/platform/network/mac/UTIUtilities.mm:
(WebCore::setImageSourceAllowableTypes):
Canonical link: https://commits.webkit.org/284850@main
To unsubscribe from these emails, change your notification settings at
https://github.com/WebKit/WebKit/settings/notifications
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes