diff options
author | Moonchild <moonchild@palemoon.org> | 2021-12-05 11:37:04 +0000 |
---|---|---|
committer | Moonchild <moonchild@palemoon.org> | 2022-04-07 23:35:02 +0200 |
commit | d3cc8bc1ae4e0815273c56f3858d979def03abd1 (patch) | |
tree | a94925a2abd719971f96a738c1c3413197d5a4ee /dom/media | |
parent | 02afcba61492797f77d54bde3c919e59b2772036 (diff) | |
download | uxp-d3cc8bc1ae4e0815273c56f3858d979def03abd1.tar.gz |
Issue #21 - Remove calls to Services.telemetry and nsITelemetry
These calls would cause breakage without the supporting plumbing.
Diffstat (limited to 'dom/media')
-rw-r--r-- | dom/media/PeerConnection.js | 16 |
1 files changed, 0 insertions, 16 deletions
diff --git a/dom/media/PeerConnection.js b/dom/media/PeerConnection.js index df36ae83ce..d2f098b1fa 100644 --- a/dom/media/PeerConnection.js +++ b/dom/media/PeerConnection.js @@ -1405,22 +1405,6 @@ PeerConnectionObserver.prototype = { handleIceConnectionStateChange: function(iceConnectionState) { let pc = this._dompc; - if (pc.iceConnectionState === 'new') { - var checking_histogram = Services.telemetry.getHistogramById("WEBRTC_ICE_CHECKING_RATE"); - if (iceConnectionState === 'checking') { - checking_histogram.add(true); - } else if (iceConnectionState === 'failed') { - checking_histogram.add(false); - } - } else if (pc.iceConnectionState === 'checking') { - var success_histogram = Services.telemetry.getHistogramById("WEBRTC_ICE_SUCCESS_RATE"); - if (iceConnectionState === 'completed' || - iceConnectionState === 'connected') { - success_histogram.add(true); - } else if (iceConnectionState === 'failed') { - success_histogram.add(false); - } - } if (iceConnectionState === 'failed') { pc.logError("ICE failed, see about:webrtc for more details"); |