[webrtc-pc] RTCSessionDescription parameters should be readonly.

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