Bug 221885

Summary: [GPU Process] Ensure that no image decoders run in the GPU Process
Product: WebKit Reporter: Said Abou-Hallawa <sabouhallawa>
Component: CanvasAssignee: Said Abou-Hallawa <sabouhallawa>
Status: RESOLVED FIXED    
Severity: Normal CC: benjamin, cdumez, cmarcelo, dino, ews-watchlist, mmaxfield, simon.fraser, thorton, webkit-bug-importer, wenson_hsieh
Priority: P2 Keywords: InRadar
Version: WebKit Nightly Build   
Hardware: Unspecified   
OS: Unspecified   
See Also: https://bugs.webkit.org/show_bug.cgi?id=225175
Attachments:
Description Flags
Patch
none
Patch
none
Patch none

Description Said Abou-Hallawa 2021-02-14 21:04:05 PST
We need to ensure that all image decoding happens in the well-sandboxed WebContent process, and not in the GPU process.

Decoding bitmap images and images in fonts will be controlled by the ImageIO SPI: CGImageSourceSetAllowableTypes(). We will release assert if a PDF image is created in the GPU Process.
Comment 1 Said Abou-Hallawa 2021-02-14 21:10:21 PST
Created attachment 420269 [details]
Patch
Comment 2 Said Abou-Hallawa 2021-02-14 21:11:01 PST
<rdar://problem/69800747>
Comment 3 Said Abou-Hallawa 2021-02-14 23:15:26 PST
Created attachment 420271 [details]
Patch
Comment 4 Radar WebKit Bug Importer 2021-02-15 00:41:31 PST
<rdar://problem/74341122>
Comment 5 Said Abou-Hallawa 2021-02-15 01:48:45 PST
Created attachment 420284 [details]
Patch
Comment 6 EWS 2021-02-15 16:09:47 PST
Committed r272888: <https://commits.webkit.org/r272888>

All reviewed patches have been landed. Closing bug and clearing flags on attachment 420284 [details].