Bug 1213441 - Remove pc.removeStream properly. r=jesup,smaug

MozReview-Commit-ID: CvmDVGUVMN2

--HG--
extra : rebase_source : 5bd3a0f17af4160d714cf090bbc4131c22e2d4f5
This commit is contained in:
Jan-Ivar Bruaroey 2016-08-01 16:18:38 -04:00
Родитель 0fd765af67
Коммит d3b37a02ba
3 изменённых файлов: 0 добавлений и 11 удалений

Просмотреть файл

@ -1033,12 +1033,6 @@ RTCPeerConnection.prototype = {
stream.getTracks().forEach(track => this.addTrack(track, stream));
},
removeStream: function(stream) {
// Bug 844295: Not implementing this functionality.
throw new this._win.DOMException("removeStream not yet implemented",
"NotSupportedError");
},
getStreamById: function(id) {
throw new this._win.DOMException("getStreamById not yet implemented",
"NotSupportedError");

Просмотреть файл

@ -107,10 +107,6 @@
pc.addStream("Invalid Media Stream")},
"addStream() on closed PC raised expected exception");
SimpleTest.doesThrow(function() {
pc.removeStream("Invalid Media Stream")},
"removeStream() on closed PC raised expected exception");
SimpleTest.doesThrow(function() {
pc.createDataChannel({})},
"createDataChannel() on closed PC raised expected exception");

Просмотреть файл

@ -123,7 +123,6 @@ interface RTCPeerConnection : EventTarget {
[UnsafeInPrerendering]
MediaStream? getStreamById (DOMString streamId);
void addStream (MediaStream stream);
void removeStream (MediaStream stream);
// replaces addStream; fails if already added
// because a track can be part of multiple streams, stream parameters