Bug 255988 - Creating a VideoFrame fails when canvas is backed by a WebGL context
Summary: Creating a VideoFrame fails when canvas is backed by a WebGL context
Status: NEW
Alias: None
Product: WebKit
Classification: Unclassified
Component: Media (show other bugs)
Version: WebKit Nightly Build
Hardware: Mac (Apple Silicon) macOS 13
: P2 Normal
Assignee: Nobody
URL:
Keywords: InRadar
Depends on:
Blocks:
 
Reported: 2023-04-26 08:56 PDT by alex
Modified: 2023-05-03 08:56 PDT (History)
6 users (show)

See Also:


Attachments

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