From 7528b0755576a2617c6e60aaef2f6de10f5f0de2 Mon Sep 17 00:00:00 2001 From: Basilisk-Dev Date: Thu, 5 Oct 2023 10:27:12 -0400 Subject: [PATCH] Issue #2332 - Remove unimplemented and non-spec getStreamById from RTCPeerConnection Backport of https://bugzilla.mozilla.org/show_bug.cgi?id=1318163 --- dom/media/PeerConnection.js | 5 ----- dom/webidl/RTCPeerConnection.webidl | 2 -- 2 files changed, 7 deletions(-) diff --git a/dom/media/PeerConnection.js b/dom/media/PeerConnection.js index 700e371364..622b1f08be 100644 --- a/dom/media/PeerConnection.js +++ b/dom/media/PeerConnection.js @@ -976,11 +976,6 @@ RTCPeerConnection.prototype = { stream.getTracks().forEach(track => this.addTrack(track, stream)); }, - getStreamById: function(id) { - throw new this._win.DOMException("getStreamById not yet implemented", - "NotSupportedError"); - }, - addTrack: function(track, stream) { if (stream.currentTime === undefined) { throw new this._win.DOMException("invalid stream.", "InvalidParameterError"); diff --git a/dom/webidl/RTCPeerConnection.webidl b/dom/webidl/RTCPeerConnection.webidl index 7ec5cc797b..b852d32070 100644 --- a/dom/webidl/RTCPeerConnection.webidl +++ b/dom/webidl/RTCPeerConnection.webidl @@ -108,8 +108,6 @@ interface RTCPeerConnection : EventTarget { sequence getLocalStreams (); [UnsafeInPrerendering, Deprecated="RTCPeerConnectionGetStreams"] sequence getRemoteStreams (); - [UnsafeInPrerendering] - MediaStream? getStreamById (DOMString streamId); void addStream (MediaStream stream); // replaces addStream; fails if already added