[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

[tor-commits] [tor-messenger-build/master] Add a patch for bugzilla 1246431



commit 93273a064e48293c2695a20926bb4559524648fb
Author: Arlo Breault <arlolra@xxxxxxxxx>
Date:   Wed Sep 21 10:39:32 2016 -0700

    Add a patch for bugzilla 1246431
    
     * https://bugzilla.mozilla.org/show_bug.cgi?id=1246431
---
 projects/instantbird/bug-1246431.patch | 31 +++++++++++++++++++++++++++++++
 projects/instantbird/config            |  1 +
 2 files changed, 32 insertions(+)

diff --git a/projects/instantbird/bug-1246431.patch b/projects/instantbird/bug-1246431.patch
new file mode 100644
index 0000000..649e5c2
--- /dev/null
+++ b/projects/instantbird/bug-1246431.patch
@@ -0,0 +1,31 @@
+
+# HG changeset patch
+# User Arlo Breault <arlolra@xxxxxxxxx>
+# Date 1454792228 28800
+# Node ID 1759abefc9195a9110c89822fcaf051cd05b0132
+# Parent  27b50a06b9b2b977b31f0777ae8f3ea355cc1130
+Bug 1246431 - XMPP createConversation should handle incoming messages from the server properly. r=aleth
+
+diff --git a/chat/protocols/xmpp/xmpp.jsm b/chat/protocols/xmpp/xmpp.jsm
+--- a/chat/protocols/xmpp/xmpp.jsm
++++ b/chat/protocols/xmpp/xmpp.jsm
+@@ -2096,17 +2096,17 @@ var XMPPAccountPrototype = {
+     // Checks if conversation is with a participant of a MUC we are in. We do
+     // not want to strip the resource as it is of the form room@domain/nick.
+     let isMucParticipant = this._mucs.has(convName);
+     if (isMucParticipant)
+       convName = this.normalizeFullJid(aName);
+ 
+     // Checking that the aName can be parsed and is not broken.
+     let jid = this._parseJID(convName);
+-    if (!jid || !jid.node || (isMucParticipant && !jid.resource)) {
++    if (!jid || !jid.domain || (isMucParticipant && (!jid.node || !jid.resource))) {
+       this.ERROR("Could not create conversation as jid is broken: " + convName);
+       throw "Invalid JID";
+     }
+ 
+     if (!this._conv.has(convName)) {
+       this._conv.set(convName,
+                      new this._conversationConstructor(this, convName,
+                                                        isMucParticipant));
+
diff --git a/projects/instantbird/config b/projects/instantbird/config
index 9b72599..9012b53 100644
--- a/projects/instantbird/config
+++ b/projects/instantbird/config
@@ -75,6 +75,7 @@ input_files:
   - filename: xmppRegister.xul
   - filename: xmpp-gtalk-resource.patch
   - filename: bug-1298574.patch
+  - filename: bug-1246431.patch
   - filename: trac-16489.patch
   - filename: trac-17896.patch
   - filename: trac-17494.patch

_______________________________________________
tor-commits mailing list
tor-commits@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-commits