Bug 237424

Summary: REGRESSION (Safari 15.3): Drawing video on canvas results in black canvas if GPU Process: Canvas rendering is on
Product: WebKit Reporter: peter.parks.eron
Component: CanvasAssignee: Nobody <webkit-unassigned>
Status: RESOLVED FIXED    
Severity: Normal CC: dino, jer.noble, jonlee, webkit-bug-importer
Priority: P2 Keywords: InRadar
Version: Safari 15   
Hardware: Mac (Apple Silicon)   
OS: macOS 12   

Description peter.parks.eron 2022-03-03 05:40:04 PST
When video uses Hls stream as a source in Safari, and when I want to draw that video onto the canvas using drawImage(video, 0, 0, w, h) (https://developer.mozilla.org/en-US/docs/Web/API/CanvasRenderingContext2D/drawImage), canvas results in a black image.
If I turn off the experimental feature- GPU Process: Canvas Rendering, everything works as expected. And it worked as expected in previous Safari versions.
Comment 1 Radar WebKit Bug Importer 2022-03-04 09:16:40 PST
<rdar://problem/89817412>
Comment 2 peter.parks.eron 2022-03-14 11:13:47 PDT
I guess that it started with the first version that included GPU Process: Canvas Rendering as On by default.
Comment 3 Jer Noble 2022-03-30 14:03:59 PDT
This appears to work correctly now: <https://jernoble.github.io/samples/bin/video-to-canvas/hls.html>

Peter, would you mind testing with a recent STP build?