summaryrefslogtreecommitdiffstats
path: root/dom/media
diff options
context:
space:
mode:
authorByron Campen [:bwc] <docfaraday@gmail.com>2018-05-31 11:30:19 -0500
committerwolfbeast <mcwerewolf@gmail.com>2018-06-29 08:01:58 +0200
commit0cacba361f8c5daf975e12241e939ee82f29a1fa (patch)
treecc424564b1808121f4dc3b2702741cdf7045d3c5 /dom/media
parentffbe05e06776f7e7e7233e74578312781888a249 (diff)
downloadUXP-0cacba361f8c5daf975e12241e939ee82f29a1fa.tar
UXP-0cacba361f8c5daf975e12241e939ee82f29a1fa.tar.gz
UXP-0cacba361f8c5daf975e12241e939ee82f29a1fa.tar.lz
UXP-0cacba361f8c5daf975e12241e939ee82f29a1fa.tar.xz
UXP-0cacba361f8c5daf975e12241e939ee82f29a1fa.zip
Bug 1464079 - Bring ICE connection state change callback up to spec. r=jib, a=RyanVM
WebRTC
Diffstat (limited to 'dom/media')
-rw-r--r--dom/media/PeerConnection.js5
1 files changed, 4 insertions, 1 deletions
diff --git a/dom/media/PeerConnection.js b/dom/media/PeerConnection.js
index 0c3021799..d13f1d0fb 100644
--- a/dom/media/PeerConnection.js
+++ b/dom/media/PeerConnection.js
@@ -1445,7 +1445,10 @@ PeerConnectionObserver.prototype = {
break;
case "IceConnectionState":
- this.handleIceConnectionStateChange(this._dompc._pc.iceConnectionState);
+ let connState = this._dompc._pc.iceConnectionState;
+ this._dompc._queueTaskWithClosedCheck(() => {
+ this.handleIceConnectionStateChange(connState);
+ });
break;
case "IceGatheringState":