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: | Canvas | Assignee: | 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 | ||
peter.parks.eron
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.
| Attachments | ||
|---|---|---|
| Add attachment proposed patch, testcase, etc. |
Radar WebKit Bug Importer
<rdar://problem/89817412>
peter.parks.eron
I guess that it started with the first version that included GPU Process: Canvas Rendering as On by default.
Jer Noble
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?