[webrtc-pc] The error thrown in the failure steps for setting a description is vague, and possibly inconsistent with existing wpt (#3096)

docfaraday has just created a new issue for https://github.com/w3c/webrtc-pc:

== The error thrown in the failure steps for setting a description is vague, and possibly inconsistent with existing wpt ==
The steps say:

"If the content of description is not valid SDP syntax, then [reject](https://w3c.github.io/webrtc-pc/#dfn-reject) p with an [RTCError](https://w3c.github.io/webrtc-pc/#dom-rtcerror)..."

and 

"If the content of description is invalid, then [reject](https://w3c.github.io/webrtc-pc/#dfn-reject) p with a newly [created](https://webidl.spec.whatwg.org/#dfn-create-exception) [InvalidAccessError](https://webidl.spec.whatwg.org/#invalidaccesserror)..."

webrtc/protocol/ice-ufragpwd.html currently expects InvalidAccessError for syntax errors in a=ice-ufrag and a=ice-pwd, which *seems* inconsistent with those steps. However, it is hard for me to say because there are multiple levels of syntax rules, and there are some that prevent the SDP from parsing at all, and some that are bad attributes that can simply be ignored depending on the implementation. We probably ought to make this language more specific.

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


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

Received on Thursday, 12 March 2026 00:37:28 UTC