Bug 1336507 - Part 1: Fix about:webrtc display of local relay transport. r=jib
authorByron Campen [:bwc] <docfaraday@gmail.com>
Fri, 03 Feb 2017 12:25:26 -0600
changeset 479880 bd81e72532b3171f4fbde1f0feec4d6bd70c1987
parent 479879 6a40c16fd2114e0c50a61e207a9bc3d4a178f147
child 479881 73fb6dab1ea936806d18cbea8012fa20435879a5
push id44393
push userVYV03354@nifty.ne.jp
push dateTue, 07 Feb 2017 13:53:48 +0000
reviewersjib
bugs1336507
milestone54.0a1
Bug 1336507 - Part 1: Fix about:webrtc display of local relay transport. r=jib MozReview-Commit-ID: D6FqhVK73Iz
toolkit/content/aboutwebrtc/aboutWebrtc.js
--- a/toolkit/content/aboutwebrtc/aboutWebrtc.js
+++ b/toolkit/content/aboutwebrtc/aboutWebrtc.js
@@ -753,17 +753,17 @@ ICEStats.prototype = {
 
   candidateToString(c) {
     if (!c) {
       return "*";
     }
 
     var type = c.candidateType;
 
-    if (c.type == "localcandidate" && c.candidateType == "relayed") {
+    if (c.type == "local-candidate" && c.candidateType == "relayed") {
       type = `${c.candidateType}-${c.mozLocalTransport}`;
     }
 
     return `${c.ipAddress}:${c.portNumber}/${c.transport}(${type})`;
   }
 };
 
 function SimpleTable(heading, data) {