W3C home > Mailing lists > Public > public-webrtc@w3.org > April 2016

[webrtc-pc] RTCSessionDescription parameters should be readonly.

From: jan-ivar via GitHub <sysbot+gh@w3.org>
Date: Mon, 11 Apr 2016 04:43:26 +0000
To: public-webrtc@w3.org
Message-ID: <issues.opened-147314949-1460349805-sysbot+gh@w3.org>
jan-ivar has just created a new issue for 
https://github.com/w3c/webrtc-pc:

== RTCSessionDescription parameters should be readonly. ==
The [current 
language](http://w3c.github.io/webrtc-pc/#idl-def-RTCSessionDescription)
 implies that content can modify the local description like this:

    pc.localDescription.type = "answer";

which would be a travesty (an interface as an attribute is by 
reference).

In light of https://github.com/w3c/webrtc-pc/pull/302 I propose we 
solve this by changing `RTCSessionDescription`'s parameters to 
`readonly`, and change `createOffer` and `createAnswer` to resolve 
with `RTCSessionDescriptionInit` instead.

Please view or discuss this issue at 
https://github.com/w3c/webrtc-pc/issues/573 using your GitHub account
Received on Monday, 11 April 2016 04:43:35 UTC

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