W3C home > Mailing lists > Public > public-webrtc-logs@w3.org > March 2019

[webrtc-pc] SLD({type: "offer"}) wo/createOffer should be InvalidModificationError (#2143)

From: Jan-Ivar Bruaroey via GitHub <sysbot+gh@w3.org>
Date: Mon, 25 Mar 2019 21:26:41 +0000
To: public-webrtc-logs@w3.org
Message-ID: <issues.opened-425123333-1553549200-sysbot+gh@w3.org>
jan-ivar has just created a new issue for https://github.com/w3c/webrtc-pc:

== SLD({type: "offer"}) wo/createOffer should be InvalidModificationError ==
What error should this produce?
```js
await new RTCPeerConnection().setLocalDescription({type: "offer"}); // ?
```
The default `""` sdp matches **[[LastOffer]]**, which is also `""` here since *createOffer* was never called, so we get past the *InvalidModificationError* check, which seems unintentional.

*RTCError*? *InvalidAccessError*? *OperationError*?

I vote we improve the *InvalidModificationError* check to catch it.

Please view or discuss this issue at https://github.com/w3c/webrtc-pc/issues/2143 using your GitHub account
Received on Monday, 25 March 2019 21:26:43 UTC

This archive was generated by hypermail 2.4.0 : Saturday, 6 May 2023 21:19:46 UTC