[webrtc-pc] need to clear [[AssociatedMediaStreams]] in removeTrack?

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

== need to clear [[AssociatedMediaStreams]] in removeTrack? ==
[addTrack](http://w3c.github.io/webrtc-pc/#dom-rtcpeerconnection-addtrack) adds to the [[AssociatedMediaStreams]] but [removeTrack](http://w3c.github.io/webrtc-pc/#dom-rtcpeerconnection-removetrack) does not set them to an empty list.

Should it? This came up in [in firefox](https://bugzilla.mozilla.org/show_bug.cgi?id=1427162) but even ignoring getLocalStreams() legacy one doesn't want to keep a reference to the streams anymore.

cc @henbos too

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

Received on Thursday, 1 February 2018 08:28:23 UTC