mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 985762 - Remove displayname from IdP protocol. r=jib
This commit is contained in:
parent
572fc8db93
commit
3313b5554e
@ -676,7 +676,7 @@ RTCPeerConnection.prototype = {
|
||||
_processIdentity: function(message) {
|
||||
if (message) {
|
||||
this._peerIdentity = new this._win.RTCIdentityAssertion(
|
||||
this._remoteIdp.provider, message.identity.name);
|
||||
this._remoteIdp.provider, message.identity);
|
||||
|
||||
let args = { peerIdentity: this._peerIdentity };
|
||||
this.dispatchEvent(new this._win.Event("peeridentity"));
|
||||
|
@ -182,14 +182,13 @@ PeerConnectionIdp.prototype = {
|
||||
|
||||
try {
|
||||
let contents = JSON.parse(message.contents);
|
||||
if (typeof contents.fingerprint !== "object" ||
|
||||
typeof message.identity !== "object") {
|
||||
warn("fingerprint or identity not objects");
|
||||
if (typeof contents.fingerprint !== "object") {
|
||||
warn("fingerprint is not an object");
|
||||
} else if (contents.fingerprint.digest !== fingerprint.digest ||
|
||||
contents.fingerprint.algorithm !== fingerprint.algorithm) {
|
||||
contents.fingerprint.algorithm !== fingerprint.algorithm) {
|
||||
warn("fingerprint does not match");
|
||||
} else {
|
||||
let error = this._validateName(message.identity.name);
|
||||
let error = this._validateName(message.identity);
|
||||
if (error) {
|
||||
warn(error);
|
||||
} else {
|
||||
|
@ -86,9 +86,7 @@
|
||||
type : "SUCCESS",
|
||||
id : message.id,
|
||||
message : {
|
||||
identity : {
|
||||
name : payload.username
|
||||
},
|
||||
identity : payload.username,
|
||||
contents : payload.contents
|
||||
}
|
||||
});
|
||||
|
Loading…
Reference in New Issue
Block a user