Note: There are a few cases of duplicates in user autocompletion which are being worked on.

JS error after closing a selected IM conversation, breaking some parts of the Chat UI

RESOLVED FIXED in Thunderbird 16.0


Instant Messaging
5 years ago
5 years ago


(Reporter: aryx, Assigned: florian)


Thunderbird 16.0

Thunderbird Tracking Flags

(thunderbird15 fixed)



(1 attachment)

Thunderbird Daily 2012-04-04, Windows XP SP 3 32-bit

After opening a chat with an IRC member by double-clicking his name and then moving the mouse over his name in the left sidebar and closing this chat, the IRC channel again gets focus, but the right column still shows "previous conversations" and not the lists of members of the IRC channel.

Comment 1

5 years ago
In this case it seems only the top of the right pane (the conversation name and the channel topic) get updated. I'll need to investigate why this happens when closing a conversation (and the selection is moved automatically to the previous item in the list of conversations) and not when the user moves the selection.

Comment 2

5 years ago
Created attachment 630585 [details] [diff] [review]

When this happens we have a JS strict warning:
components/imConversations.js, line 47: reference to undefined property this._purpleConv[this._currentTargetId]

This means that we are touching attributes of an imConversation that's already destroyed from the point of view of the imConversations service.

The attached patch contains a comment in the code explaining what was actually going wrong.
Assignee: nobody → florian
Attachment #630585 - Flags: review?(mconley)


5 years ago
Summary: After closing direct chat with IRC member and IRC channel gets focus, participants list not shown, still previous conversation in use → JS error after closing a selected IM conversation, breaking some parts of the Chat UI


5 years ago
Duplicate of this bug: 740475
Comment on attachment 630585 [details] [diff] [review]

Review of attachment 630585 [details] [diff] [review]:

Fixed the problem, and looks good.

::: mail/components/im/content/imconv.xml
@@ +169,5 @@
>            this.convView.destroy();
>            this.convView.parentNode.removeChild(this.convView);
>          }
> +
> +        // If the conversation we are destroying was selected, we should

Nice, clear documentation.
Attachment #630585 - Flags: review?(mconley) → review+

Comment 5

5 years ago
Last Resolved: 5 years ago
Resolution: --- → FIXED
Target Milestone: --- → Thunderbird 16.0

Comment 6

5 years ago
Comment on attachment 630585 [details] [diff] [review]

[Approval Request Comment]
We want this fix for Tb15, as the bug causes some user visible issues in the UI.
Attachment #630585 - Flags: approval-comm-aurora?
Attachment #630585 - Flags: approval-comm-aurora? → approval-comm-aurora+

Comment 7

5 years ago
status-thunderbird15: --- → fixed
You need to log in before you can comment on or make changes to this bug.