haikuwebkit/Source/WebCore/PAL/pal/spi/cocoa
Said Abou-Hallawa 74c4e1e189 Ease sandboxing restrictions for Mail to allow HEIF image decoding
https://bugs.webkit.org/show_bug.cgi?id=228812
<rdar://80967782>

Reviewed by Per Arne Vollan.

Source/WebCore:

No need to pass kCGImageSourceEnableRestrictedDecoding to ImageIO anymore.

* platform/graphics/cg/ImageDecoderCG.cpp:
(WebCore::createImageSourceOptions):

Source/WebCore/PAL:

Delete unneeded SPIs and their soft-linking.

* PAL.xcodeproj/project.pbxproj:
* pal/cf/VideoToolboxSoftLink.cpp:
* pal/cf/VideoToolboxSoftLink.h:
* pal/cocoa/MediaToolboxSoftLink.cpp:
* pal/cocoa/MediaToolboxSoftLink.h:
* pal/spi/cg/ImageIOSPI.h:
* pal/spi/cocoa/VideoToolboxSPI.h: Removed.

Source/WebKit:

If the running application is Mail, add a sandbox extension to allow HEIF
image decoding. There is no plan right now to enable HEIF in WebKit. So
do not try to support decoding it outside Mail.

* Shared/WebProcessCreationParameters.cpp:
(WebKit::WebProcessCreationParameters::encode const):
(WebKit::WebProcessCreationParameters::decode):
* Shared/WebProcessCreationParameters.h:
* UIProcess/Cocoa/WebProcessPoolCocoa.mm:
(WebKit::WebProcessPool::platformInitializeWebProcess):
* WebProcess/cocoa/WebProcessCocoa.mm:
(WebKit::WebProcess::platformInitializeWebProcess):
(WebKit::WebProcess::initializeSandbox):
(WebKit::restrictImageAndVideoDecoders): Deleted.

LayoutTests:

Delete the only HEIF ref test since the HEIF format has not been enabled
in WebKit and it requires a sandbox extension to be decoded correctly on
recent macOS versions.

* TestExpectations:
* fast/images/heic-as-background-image-expected.html: Removed.
* fast/images/heic-as-background-image.html: Removed.
* fast/images/resources/green-400x400.heic: Removed.
* platform/ios/TestExpectations:
* platform/mac/TestExpectations:


Canonical link: https://commits.webkit.org/240368@main
git-svn-id: https://svn.webkit.org/repository/webkit/trunk@280789 268f45cc-cd09-0410-ab3c-d52691b4dbfc
2021-08-09 19:06:41 +00:00
..
AVAssetWriterSPI.h
AVFoundationSPI.h
AVKitSPI.h
AVStreamDataParserSPI.h
AXSpeechManagerSPI.h
AccessibilitySupportSPI.h
AccessibilitySupportSoftLink.cpp
AccessibilitySupportSoftLink.h
AppSSOSPI.h
AudioToolboxSPI.h
AuthKitSPI.h
CFNSURLConnectionSPI.h
CommonCryptoSPI.h
CoreMotionSPI.h
CoreServicesSPI.h
CryptoKitPrivateSPI.h
DataDetectorsCoreSPI.h
FeatureFlagsSPI.h
IOKitSPI.h
IOPMLibSPI.h
IOPSLibSPI.h
IOReturnSPI.h
IOSurfaceSPI.h
IOTypesSPI.h
LaunchServicesSPI.h
MediaToolboxSPI.h
MetalSPI.h
NEFilterSourceSPI.h
NSAccessibilitySPI.h
NSAttributedStringSPI.h
NSButtonCellSPI.h
NSCalendarDateSPI.h
NSColorSPI.h
NSExtensionSPI.h
NSFileManagerSPI.h
NSFileSizeFormatterSPI.h
NSProgressSPI.h
NSStringSPI.h
NSTouchBarSPI.h
NSURLConnectionSPI.h
NSURLDownloadSPI.h
NSURLFileTypeMappingsSPI.h
NSUserDefaultsSPI.h
NSXPCConnectionSPI.h
NotifySPI.h
PassKitInstallmentsSPI.h
PassKitSPI.h [Payment Request] `additionalShippingMethods` are not used if a `paymentMethodType` is provided 2021-07-30 00:28:45 +00:00
QuartzCoreSPI.h Add WKHoverPlatter and some knobs to tweak its appearance 2021-07-08 06:46:49 +00:00
RevealSPI.h
SecKeyProxySPI.h
ServersSPI.h
SpeechSPI.h
URLFormattingSPI.h
VisionKitCoreSPI.h [Live Text] [iOS] Provide a presenting `UIViewController` for machine readable code actions so that they are related to the same view 2021-08-03 18:22:46 +00:00
WebFilterEvaluatorSPI.h
pthreadSPI.h