Bug 255988

Summary: Creating a VideoFrame fails when canvas is backed by a WebGL context
Product: WebKit Reporter: alex <alex.vestin>
Component: MediaAssignee: Nobody <webkit-unassigned>
Status: NEW ---    
Severity: Normal CC: ap, dino, eric.carlson, jer.noble, kkinnunen, webkit-bug-importer
Priority: P2 Keywords: InRadar
Version: WebKit Nightly Build   
Hardware: Mac (Apple Silicon)   
OS: macOS 13   

Description alex 2023-04-26 08:56:00 PDT
Whenever a getContext has been called with either webgl or webgl2, it's no longer possible to construct a VideoFrame using the canvas

https://jsfiddle.net/jck4Lz7h/

Fails with:

[Error] InvalidStateError: Canvas has no frame
	VideoFrame (_display:121)
	Global Code (_display:121)

tested on a tot build (bf6ce950bacc83f9fb3dc35b9c1a632146d71047)
Comment 1 Alexey Proskuryakov 2023-04-27 17:45:00 PDT
Thank you for the report! Could you please confirm when you last saw this working? I get the same error with Safari 16.5 beta.
Comment 2 alex 2023-04-28 03:46:43 PDT
Not sure if it was working before, I got it also in the stable version (Version 16.4 (18615.1.26.11.23))
Comment 3 Radar WebKit Bug Importer 2023-05-03 08:56:20 PDT
<rdar://problem/108843033>