Closed Bug 1591399 Opened 7 years ago Closed 7 years ago

Nick highlight and emoticons broken in chat

Categories

(Thunderbird :: Instant Messaging, defect)

defect
Not set
normal

Tracking

(thunderbird71 fixed, thunderbird72 fixed)

VERIFIED FIXED
Thunderbird 72.0
Tracking Status
thunderbird71 --- fixed
thunderbird72 --- fixed

People

(Reporter: clokep, Assigned: mkmelin)

References

(Regression)

Details

(Keywords: regression)

Attachments

(1 file)

I updated to Thunderbird 71 beta 1 today and I noticed a couple of things broken in chat, I'm unsure if they're related but they smell like they probably are:

  • (Using the bubbles theme) if someone pings you (or if you mention someone) their name is not highlighted properly.
  • Emoticons are not rendered from text into images.

I do not seem to see any errors in the console that might be related to this.

Version: 72 → 71

This can be seen easily be going into the chat preferences and looking at the theme.

Alice, would you be able to track down when this broke? It works fine in 70b4, broken in 71b1.

The easiest way to test this is to:

  1. Go to the preferences
  2. Click on the "Chat" tab
  3. Look under "Styling"
  4. The first line says "Hi! :-)", it should show a smile image instead of the text :-)
Flags: needinfo?(alice0775)

Thank you Alice! :)

This is regressed by bug 1570954.

I'm unsure of the difference from firstChild/firstElementChild and friends, any idea what might be causing this?

Flags: needinfo?(mkmelin+mozilla)
Regressed by: 1570954
Assignee: nobody → mkmelin+mozilla
Status: NEW → ASSIGNED
Flags: needinfo?(mkmelin+mozilla)
Keywords: regression
Summary: Bubbles and emoticons broken in TB71b1 → Bubbles and emoticons broken in chat

Seems to fix it for me.

Attachment #9104330 - Flags: review?(clokep)
Comment on attachment 9104330 [details] [diff] [review] bug1591399_im_smiley.patch Having some issues building right now, so I wasn't able to test this, but I think this will fix it.
Attachment #9104330 - Flags: review?(clokep) → review+
Attachment #9104330 - Flags: approval-comm-beta+

I tested it. Changing the summary to what was actually broken.

Summary: Bubbles and emoticons broken in chat → Nuck highlight and emoticons broken in chat
Summary: Nuck highlight and emoticons broken in chat → Nick highlight and emoticons broken in chat

Pushed by mozilla@jorgk.com:
https://hg.mozilla.org/comm-central/rev/450ec65c9b9f
fix nick highlight and emoticons in chat. r=clokep

Status: ASSIGNED → RESOLVED
Closed: 7 years ago
Resolution: --- → FIXED
Target Milestone: --- → Thunderbird 72.0

Sadly the reason for the failure/fix weren't stated here. Bug 1570954 changed
firstChild->firstElementChild
lastChild->lastElementChild
nextSibling->nextElementSibling
previousSibling->previousElementSibling
childNodes->children
to prepare for the XUL to XHTML transition, so basically JS operating on XUL files will need to change when the XUL files become XHTML files.

JS operating on HTML was explicitly excluded "whole-sale" in bug 1570954, see the reversals in the checkin comment in https://hg.mozilla.org/comm-central/rev/a128f9557e9d.

The chat document in question was already HTML, so the corresponding JS code shouldn't have been changed and a reversal fixed the issue.

(In reply to Jorg K (GMT+2) from comment #12)

The chat document in question was already HTML, so the corresponding JS code shouldn't have been changed and a reversal fixed the issue.

Thanks for posting the explanation in here, and this is the important piece here -- these functions deal with the HTML of the chat pane itself, not the UI surrounding the chat pane.

Thanks for the beta approval!

I verified that this works fine on a custom built Thunderbird from today's tip.

Status: RESOLVED → VERIFIED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: