w3c / webcodecs

WebCodecs is a flexible web API for encoding and decoding audio and video.
https://w3c.github.io/webcodecs/
Other
937 stars 131 forks source link

`ImageBufferSource` should be `[AllowShared]` #799

Open padenot opened 3 weeks ago

padenot commented 3 weeks ago

This is what Chromium implements, but isn't in the spec. We're implementing like Chromium in Firefox, but we need to make the spec say that.

@dalecurtis, anything to add based on implementation experience? I see that it can either transfer or copy, so we should be good for TOCTOU issues and related common problems.

dalecurtis commented 3 weeks ago

Ah yeah, it should be AllowShared. Thanks!