From eb441b3630284300b228fb0f31c0549c7517c1fd Mon Sep 17 00:00:00 2001 From: "google-labs-jules[bot]" <161369871+google-labs-jules[bot]@users.noreply.github.com> Date: Thu, 12 Feb 2026 06:00:11 +0000 Subject: [PATCH] Allow allocationSize/copyTo on opaque VideoFrames when converting to RGB. Co-authored-by: Djuffin <132926+Djuffin@users.noreply.github.com> --- index.src.html | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/index.src.html b/index.src.html index 4e6e1487..22fb42b1 100644 --- a/index.src.html +++ b/index.src.html @@ -3830,7 +3830,7 @@ When invoked, run these steps: 1. If {{platform object/[[Detached]]}} is `true`, throw an {{InvalidStateError}} {{DOMException}}. - 2. If {{VideoFrame/[[format]]}} is `null`, throw a {{NotSupportedError}} + 2. If {{VideoFrame/[[format]]}} is `null` and |options|.{{VideoFrameCopyToOptions/format}} does not [=map/exist=], throw a {{NotSupportedError}} {{DOMException}}. 3. Let |combinedLayout| be the result of running the [=Parse VideoFrameCopyToOptions=] algorithm with |options|. @@ -3849,7 +3849,7 @@ When invoked, run these steps: 1. If {{platform object/[[Detached]]}} is `true`, return a promise rejected with a {{InvalidStateError}} {{DOMException}}. - 2. If {{VideoFrame/[[format]]}} is `null`, return a promise rejected with a + 2. If {{VideoFrame/[[format]]}} is `null` and |options|.{{VideoFrameCopyToOptions/format}} does not [=map/exist=], return a promise rejected with a {{NotSupportedError}} {{DOMException}}. 3. Let |combinedLayout| be the result of running the [=Parse VideoFrameCopyToOptions=] algorithm with |options|. @@ -6258,6 +6258,7 @@ conditions, such as allowing a site to mutate a codec input or output while the underlying codec is still operating on that data. This concern is mitigated by ensuring that input and output interfaces are immutable. + Privacy Considerations{#privacy-considerations} =============================================== @@ -6305,6 +6306,7 @@ budget", which depletes as authors use WebCodecs and other identifying APIs. Upon exhaustion of the privacy budget, codec capabilities could be reduced to a common baseline or prompt for user approval. + Best Practices for Authors Using WebCodecs{#best-practices-developers} ======================================================================