[webrtc-pc] setLocalDescription algorithm for rejecting modification

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

== setLocalDescription algorithm for rejecting modification ==
http://w3c.github.io/webrtc-pc/#dom-rtcpeerconnection-setlocaldescription
contains an algorithm for rejecting modifications.

In the operations section we already have something in the "To set an RTCSessionDescription". In particular this:

> If elements of the SDP were modified, then reject p with a newly created InvalidModificationError and abort these steps.

Given that the SLD executes the algorithm as the last step how can InvalidModificationError happen in "set an RTCSessionDescription" anymore?

(the way things are currently written the algorithm will also operate in closed state)

The algorithm should execute as part of the "set an RTCSessionDescription", not call it as the last step.
Replacing step 2 of "set an RTCSessionDescription" should do the trick:

> If description is set as a local description, then run the following steps:

[... steps 1 to 7 from the algorithm]

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

Received on Sunday, 4 June 2017 07:41:42 UTC