Bug 1111523 - isP2P and sessionToken shouldn't exist in nfc-manager-tech-discover wrapper. r=dimi

This commit is contained in:
Yoshi Huang 2014-12-15 18:01:34 +08:00
parent 3bf5e57edb
commit b0548b1e2d
2 changed files with 5 additions and 1 deletions

View File

@ -482,7 +482,7 @@ Nfc.prototype = {
let sysMsg = new NfcTechDiscoveredSysMsg(message.sessionToken,
message.isP2P,
message.records);
message.records || null);
gSystemMessenger.broadcastMessage("nfc-manager-tech-discovered", sysMsg);
break;
case "TechLostNotification":

View File

@ -573,6 +573,10 @@ NFCTechDiscoveredWrapper.prototype = {
let peer = aWindow.MozNFCPeer._create(aWindow, peerImpl);
aMessage.peer = peer;
}
delete aMessage.isP2P;
delete aMessage.sessionToken;
return aMessage;
},