Bug 256509

Summary: canvas freezed when drawing new VideoFrame(video) to canvas
Product: WebKit Reporter: Shawn Lee <shawnlee>
Component: CanvasAssignee: youenn fablet <youennf>
Status: RESOLVED FIXED    
Severity: Normal CC: dino, eric.carlson, jer.noble, webkit-bug-importer, youennf
Priority: P2 Keywords: InRadar
Version: WebKit Nightly Build   
Hardware: Unspecified   
OS: Unspecified   
Attachments:
Description Flags
screencast none

Description Shawn Lee 2023-05-08 23:23:47 PDT
Created attachment 466292 [details]
screencast

Demo : 
https://w5jlyh.codesandbox.io/

Tested on ios 16.4, iphone 13

Click the start to play the video and notice the first canvas is freezed at first frame.

The demo draw the VideoFrame from video to first canvas then draw first canvas to second canvas.
The first canvas is freezed but the second canvas is not.
Comment 1 Radar WebKit Bug Importer 2023-05-09 09:08:53 PDT
<rdar://problem/109100283>
Comment 2 Eric Carlson 2023-05-10 06:20:28 PDT
Also reproduces is on macOS where the first canvas does update when the mouse lives over it, so we may just not be invalidating a canvas when a VideoFrame is drawn to it. 

Thanks for the report and clear test case!
Comment 3 youenn fablet 2023-05-10 06:41:59 PDT
Pull request: https://github.com/WebKit/WebKit/pull/13691
Comment 4 EWS 2023-05-11 05:26:26 PDT
Committed 263959@main (0a48a1c5428e): <https://commits.webkit.org/263959@main>

Reviewed commits have been landed. Closing PR #13691 and removing active labels.