haikuwebkit/LayoutTests/fast/images/resources
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
..
0colors.ico
1bit.ico
2entries.ico
8bit.ico
32bit.ico
100x100-red-psd-renamed.png
100x100-red-tga-renamed.png
100x100-red.psd
100x100-red.tga
animated-10color.gif
animated-gif-window-resize.html
animated-gif-with-offsets.gif
animated-image-loop-count.js
animated-red-green-1000x1000-repeat-1.gif
animated-red-green-blue-repeat-1.gif
animated-red-green-blue-repeat-1.png
animated-red-green-blue-repeat-2.gif
animated-red-green-blue-repeat-2.png
animated-red-green-blue-repeat-infinite.gif
animated-red-green-blue-repeat-infinite.png
animated-red-green-blue.gif
animated-red-green-blue.mp4
animated.gif
animated2.gif
annotation.pdf
apng00-ref.png
apng00.png
apng01-ref.png
apng01.png
apng02-ref.png
apng02.png
apng04-ref.png
apng04.png
apng08-ref.png
apng08.png
apng10-ref.png
apng10.png
apng11-ref.png
apng11.png
apng12-ref.png
apng12.png
apng14-ref.png
apng14.png
apng18-ref.png
apng18.png
apng24-ref.png
apng24.png
apng26-ref.png
apng26.png
avifs00-ref.avif Animated AVIF support 2021-03-19 18:02:49 +00:00
avifs00.avifs Animated AVIF support 2021-03-19 18:02:49 +00:00
avifs01-ref.avif Animated AVIF support 2021-03-19 18:02:49 +00:00
avifs01.avifs Animated AVIF support 2021-03-19 18:02:49 +00:00
avifs02-ref.avif Animated AVIF support 2021-03-19 18:02:49 +00:00
avifs02.avifs Animated AVIF support 2021-03-19 18:02:49 +00:00
awebp00-ref.webp
awebp00.webp
awebp01-ref.webp
awebp01.webp
awebp02-ref.webp
awebp02.webp
awebp03-ref.webp
awebp03.webp
awebp04-ref.webp
awebp04.webp
awebp05-ref.webp
awebp05.webp
awebp06-ref.webp
awebp06.webp
awebp07-ref.webp
awebp07.webp
awebp08-ref.webp
awebp08.webp
awebp09-ref.webp
awebp09.webp
bad-png-missing-fdAT.png
bad-png.png
bad.ico
boston.gif
broken-image-with-invalid-format.png
busted-oval.png
cmyk-jpeg.jpg
dice.png
dot-moving-in-a-circle-animation.gif
exif-orientation-1-ul.jpg
exif-orientation-2-ur.jpg
exif-orientation-3-lr.jpg
exif-orientation-4-lol.jpg
exif-orientation-5-lu.jpg
exif-orientation-6-ru.jpg
exif-orientation-7-rl.jpg
exif-orientation-8-llo.jpg
exif-orientation-9-u.jpg
favicon.ico
flowchart.jpg
gif-loop-count.gif
gif-loop-count.png
green-1x1.pdf
green-24x24.jpg
green-100x100.eps
green-100x100.svg
green-256x256.jpg
green-256x256.png
green-313x313.avif AVIF decoding support 2021-03-05 16:15:08 +00:00
green-400x400.png
green-400x400.webp
green-504x378-90deg.jpg Handle clamping of heights for images affected by background-size and EXIF orientation correctly 2021-05-04 21:40:29 +00:00
green.jpg
green_rectangle.pdf
grid-large.png
grid-small.png
icc-v2-gbr.jpg
iframe-with-animated-gif.html
iframe-with-animated-gif2.html
invalid.jpg
large-gif-checkerboard.gif
large-size-image-crash.jpeg
mask.svg [GPU Process] Canvas image rendering can render arbitrary DOM content in the GPU process, which is against policy (for now) 2021-07-08 15:52:51 +00:00
mu.png
oval.png
palatted-color-png-gamma-one-color-profile.png
pdf_test_landscape.pdf
pixel-crack-image-background-webkit-transform-scale.png
png-extra-row-crash.png
png_per_row_alpha.png
quicksort.gif
red-100x100.png
red-400x400.png
red-at-12-oclock-with-color-profile.jpg
red-at-12-oclock-with-color-profile.png
red-green-2x2-cropped-to-1x1.pdf
red-green-blue-900-300.png
rgb-jpeg-blue.jpg
rgb-jpeg-green.jpg
rgb-jpeg-red.jpg
rgb-jpeg-with-adobe-marker-only.jpg
rgb-png-with-cmyk-color-profile.png
sea_animation.heics
short-app-extension-string.gif
size-failure.gif
spinner.gif
sprite-sheet-red-green-blue.png
sticker.heics
test-load.jpg
test.webp
test2.webp
test3.webp
two-samples-with-same-pts.mp4
webgl-draw-image.js
webp-color-profile-lossless.webp
webp-color-profile-lossy-alpha.webp
webp-color-profile-lossy.webp
wrong-block-length.gif
ycbcr-with-cmyk-color-profile.jpg
ycbcr-with-no-color-profile.jpg