Bug 241560 - Avoid using hardware JPEG decoding in the WebContent process
Summary: Avoid using hardware JPEG decoding in the WebContent process
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: Images (show other bugs)
Version: WebKit Nightly Build
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Brent Fulgham
URL:
Keywords: InRadar
Depends on:
Blocks:
 
Reported: 2022-06-13 11:39 PDT by Brent Fulgham
Modified: 2022-06-17 16:49 PDT (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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>