W3C home > Mailing lists > Public > public-webrtc@w3.org > June 2017

[webrtc-pc] setLocalDescription algorithm for rejecting modification

From: Philipp Hancke via GitHub <sysbot+gh@w3.org>
Date: Sun, 04 Jun 2017 07:41:35 +0000
To: public-webrtc@w3.org
Message-ID: <issues.opened-233417903-1496562093-sysbot+gh@w3.org>
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

This archive was generated by hypermail 2.3.1 : Monday, 23 October 2017 15:19:51 UTC