W3C removed MediaStream state check from the removeTrack() algorithm, since February 18, 2014 For example, following code should not throw INVALID_STATE_ERR // video: MediaStream that has 1 video track. // audeo: MediaStream that has 1 audio track. video.removeTrack(video.getVideoTracks()[0]); video.removeTrack(audio.getAudioTracks()[0]); // should not throw Relative issue: https://www.w3.org/Bugs/Public/show_bug.cgi?id=24930 Full Test: http://w3c-test.org/mediacapture-streams/stream-api/mediastream/mediastream-removetrack.html
Created attachment 234397 [details] PATCH First Patch. I will add a new test for this cass.
Attachment 234397 [details] did not pass style-queue: ERROR: Source/WebCore/ChangeLog:8: You should remove the 'No new tests' and either add and list tests, or explain why no new tests were possible. [changelog/nonewtests] [5] Total errors found: 1 in 1 files If any of these errors are false positives, please file a bug against check-webkit-style.