Re: [webrtc-pc] Possibly racy replaceTrack()

> I don't think the "determine if negotiation is needed" here is intended to take direction into account. 

Does that mean it should be valid to replaceTrack() after removeTrack(sender)? I suppose removeTrack() is just a sync way of doing `replaceTrack(null); direction = null`, nothing irreversible.

If so these tests are wrong to assert that the promise is rejected?
https://cs.chromium.org/chromium/src/third_party/WebKit/LayoutTests/external/wpt/webrtc/RTCPeerConnection-setRemoteDescription-replaceTrack.https.html?l=106

-- 
GitHub Notification of comment by henbos
Please view or discuss this issue at https://github.com/w3c/webrtc-pc/issues/1728#issuecomment-356395988 using your GitHub account

Received on Tuesday, 9 January 2018 19:56:28 UTC