Bug 237424 - REGRESSION (Safari 15.3): Drawing video on canvas results in black canvas if GPU Process: Canvas rendering is on
Summary: REGRESSION (Safari 15.3): Drawing video on canvas results in black canvas if ...
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: Canvas (show other bugs)
Version: Safari 15
Hardware: Mac (Apple Silicon) macOS 12
: P2 Normal
Assignee: Nobody
URL:
Keywords: InRadar
Depends on:
Blocks:
 
Reported: 2022-03-03 05:40 PST by peter.parks.eron
Modified: 2022-03-30 14:03 PDT (History)
4 users (show)

See Also:


Attachments

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