[webrtc-encoded-transform] WPT script-transform-generateKeyFrame.https.html is not aligned with specification (#267)

youennf has just created a new issue for https://github.com/w3c/webrtc-encoded-transform:

== WPT script-transform-generateKeyFrame.https.html is not aligned with specification ==
Similarly to https://github.com/w3c/webrtc-encoded-transform/issues/243, it seems the spec and WPT test are not in sync.
The WPT test expects that transformer.generateKeyFrame reject with InvalidStateError when the sender is negotiated inactive or when the sender has no track.
`InvalidStateError` can only be used synchronously so it is probably related to the line:
`If encoder is undefined, reject promise with [InvalidStateError](https://webidl.spec.whatwg.org/#invalidstateerror), abort these steps.`

`encoder` is not set to `undefined` when sender track is null or in case of inactive state.

We should probably update the test, which is part of WPT interop 2025.
@guidou, @jan-ivar, thoughts?

Please view or discuss this issue at https://github.com/w3c/webrtc-encoded-transform/issues/267 using your GitHub account


-- 
Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config

Received on Friday, 4 July 2025 11:54:51 UTC