Bug 1044172 - [Regression] Error "aJID.trim is not a function" when deleting XMPP account. r=nhnt11
authorPatrick Cloke <clokep@gmail.com>
Fri, 25 Jul 2014 15:45:57 -0400
changeset 16508 74fe45baef1e3bca2d9fe98b7d885fab829368d7
parent 16507 2f4be5bad7dbfe239b880e6d71f6ee089de30dc4
child 16509 d96abff537094ceb3ab9288642f1b4d46d0a6d88
push id1234
push usermbanner@mozilla.com
push dateMon, 13 Oct 2014 17:59:18 +0000
treeherdercomm-esr52@b5a0add9fb18 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersnhnt11
bugs1044172
Bug 1044172 - [Regression] Error "aJID.trim is not a function" when deleting XMPP account. r=nhnt11
chat/protocols/xmpp/xmpp.jsm
--- a/chat/protocols/xmpp/xmpp.jsm
+++ b/chat/protocols/xmpp/xmpp.jsm
@@ -729,17 +729,17 @@ const XMPPAccountPrototype = {
                       this.getInt("port") || 5222,
                       this.getString("connection_security"), this._jid,
                       this.imAccount.password, this);
   },
 
   remove: function() {
     this._conv.forEach(conv => conv.close());
     this._mucs.forEach(muc => muc.close());
-    this._buddies.forEach(jid => this._forgetRosterItem(jid));
+    this._buddies.forEach((buddy, jid) => this._forgetRosterItem(jid));
   },
 
   unInit: function() {
     if (this._connection)
       this._disconnect(undefined, undefined, true);
     delete this._jid;
     delete this._conv;
     delete this._buddies;