Bug 955490 - Add data to 'conversation-loaded' notification to let observers know that the conversation was moved, r=aleth.
authorBenedikt Pfeifer <benediktp@ymail.com>
Sat, 09 Nov 2013 22:18:01 -0500
changeset 19231 76743075c40f0c81787f58647b220ea7f5a207ff
parent 19230 667a503cf3a145480f3b7b91b56efea404200e8e
child 19232 b985822e06a069f1507ca5696020de527caf7224
push id1103
push usermbanner@mozilla.com
push dateTue, 18 Mar 2014 07:44:06 +0000
treeherdercomm-beta@50c6279a0af0 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersaleth
bugs955490
Bug 955490 - Add data to 'conversation-loaded' notification to let observers know that the conversation was moved, r=aleth.
im/content/conversation.xml
--- a/im/content/conversation.xml
+++ b/im/content/conversation.xml
@@ -167,17 +167,20 @@
           this.browser.swapDocShells(aConversation.browser);
           // Ensure observers are removed.
           aConversation.conv = null;
           this.editor.value = aConversation.editor.value;
           this.browser.browserResize();
           this.updateTyping();
           this.inputValueChanged();
           this.loaded = true;
-          Services.obs.notifyObservers(this.browser, "conversation-loaded", null);
+          // Tell observers that this conversation was imported from another
+          // window as they might want to behave differently in this case.
+          Services.obs.notifyObservers(this.browser, "conversation-loaded",
+                                                     "imported");
         ]]>
         </body>
       </method>
 
       <field name="loaded">false</field>
 
       <field name="_readCount">0</field>
       <method name="_showFirstMessages">