From 379c5bfe4ee28767ca292879966e0461666d5384 Mon Sep 17 00:00:00 2001 From: "Byron Campen [:bwc]" Date: Fri, 29 Mar 2019 18:38:56 +0000 Subject: [PATCH] Bug 1534692 - Part 8: In setIdentityProvider, fall back to the target peer identity if a peerIdentity is not passed. r=jib Differential Revision: https://phabricator.services.mozilla.com/D24793 --HG-- extra : moz-landing-system : lando --- dom/media/PeerConnection.jsm | 1 + 1 file changed, 1 insertion(+) diff --git a/dom/media/PeerConnection.jsm b/dom/media/PeerConnection.jsm index def0328d13eb..53358862db92 100644 --- a/dom/media/PeerConnection.jsm +++ b/dom/media/PeerConnection.jsm @@ -1053,6 +1053,7 @@ class RTCPeerConnection { setIdentityProvider(provider, {protocol, usernameHint, peerIdentity} = {}) { this._checkClosed(); + peerIdentity = peerIdentity || this._impl.peerIdentity; this._localIdp.setIdentityProvider(provider, protocol, usernameHint, peerIdentity); }