Bug 241560

Summary: Avoid using hardware JPEG decoding in the WebContent process
Product: WebKit Reporter: Brent Fulgham <bfulgham>
Component: ImagesAssignee: Brent Fulgham <bfulgham>
Status: RESOLVED FIXED    
Severity: Normal CC: sabouhallawa, webkit-bug-importer
Priority: P2 Keywords: InRadar
Version: WebKit Nightly Build   
Hardware: Unspecified   
OS: Unspecified   

Description Brent Fulgham 2022-06-13 11:39:02 PDT
We disable hardware JPEG decoding so that we can block IOSurface uses in the WebContent process. We missed a scenario where using a file picker might need to create an image thumbnail/icon, which now triggers a sandbox violation potentially crashing the WCP.

This patch instructs CoreGraphics to use the software path, similar to how we fixed Bug 238489.
Comment 1 Brent Fulgham 2022-06-13 11:39:15 PDT
<rdar://88717577>
Comment 2 Brent Fulgham 2022-06-13 11:45:04 PDT
Pull request: https://github.com/WebKit/WebKit/pull/1475
Comment 3 EWS 2022-06-17 16:48:41 PDT
Committed r295648 (251653@main): <https://commits.webkit.org/251653@main>

Reviewed commits have been landed. Closing PR #1475 and removing active labels.
Comment 4 Radar WebKit Bug Importer 2022-06-17 16:49:14 PDT
<rdar://problem/95422790>