From d84f0c169d3ef3ae1687a57576b98fb169b05105 Mon Sep 17 00:00:00 2001 From: Youenn Fablet Date: Mon, 29 Jan 2024 09:42:15 +0100 Subject: [PATCH] Writing a closed video frame should reject --- index.bs | 1 + 1 file changed, 1 insertion(+) diff --git a/index.bs b/index.bs index d05cff7..d558212 100644 --- a/index.bs +++ b/index.bs @@ -293,6 +293,7 @@ is accessed for the first time, it MUST be initialized with the following steps: The writeFrame algorithm is given a |generator| and a |frame| as input. It is defined by running the following steps: 1. If |frame| is not a {{VideoFrame}} object, return [=a promise rejected with=] a {{TypeError}}. +1. If the value of |frame|’s [[Detached]] internal slot is true, return [=a promise rejected with=] a {{TypeError}}. 1. If |generator|.`[[isMuted]]` is false, send the media data backing |frame| to all live tracks sourced from |generator|. 1. Run the [=Close VideoFrame=] algorithm with |frame|. 1. Return [=a promise resolved with=] undefined.