Re: [webrtc-pc] RTCPeerConnection-setLocalDescription-answer.html expects InvalidStateError on sLD(answer) when no answer has ever been created (#3129)

Put another way; the test is expecting the wrong error, and *additionally* the state checking in the spec is done in different places depending on what kind of description it is. There is state checking for "rollback" in [the steps for setting a description](https://w3c.github.io/webrtc-pc/#set-the-session-description) (that's step 2), but no other state checking exists in webrtc-pc; the rest of the state checking is farmed out to the *in parallel* steps specified in JSEP (that's step 4).

-- 
GitHub Notification of comment by docfaraday
Please view or discuss this issue at https://github.com/w3c/webrtc-pc/issues/3129#issuecomment-5046545187 using your GitHub account


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

Received on Wednesday, 22 July 2026 13:36:01 UTC