Bug 1252459 - Replaced 'identity.name' by 'name' to fix identity undefined bug, r=mt
MozReview-Commit-ID: 40FbNyLMOhz
--- a/dom/media/PeerConnectionIdp.jsm
+++ b/dom/media/PeerConnectionIdp.jsm
@@ -172,17 +172,17 @@ PeerConnectionIdp.prototype = {
let providerPortIdx = provider.indexOf(':');
if (providerPortIdx > 0) {
provider = provider.substring(0, providerPortIdx);
}
let idnService = Components.classes['@mozilla.org/network/idn-service;1']
.getService(Components.interfaces.nsIIDNService);
if (idnService.convertUTF8toACE(tail) !==
idnService.convertUTF8toACE(provider)) {
- error('name "' + identity.name +
+ error('name "' + name +
'" doesn\'t match IdP: "' + this.provider + '"');
}
},
/**
* Check the validation response. We are very defensive here when handling
* the message from the IdP proxy. That way, broken IdPs aren't likely to
* cause catastrophic damage.