Ticket #7148 (closed defect: fixed)
Emoticons don't correctly re-display after installing Safari 3
| Reported by: | Nebula | Owned by: | Catfish_Man |
|---|---|---|---|
| Milestone: | Adium X 1.1.2 | Component: | Message View |
| Version: | 1.0.4 | Severity: | normal |
| Keywords: | safari 3 emoticon | Cc: | |
| Patch Status: | Accepted |
Description
I installed the Safari 3 Public Beta today. Emoticons show correctly initially. When you click the emoticon to show the text used to create it, the text is correctly displayed. However, clicking again to restore the emoticon instead shows the blue question mark placeholder graphic.
Attachments
Change History
Changed 5 years ago by Nebula
-
attachment
Example.png
added
comment:3 Changed 5 years ago by jas8522
- Keywords 3 added; 3, removed
- Milestone set to Adium X 1.1.1
Yep definitely an issue.
comment:4 Changed 5 years ago by Zeros
The issue seems to relate to changes in how random attributes are handled on elements.
The broken adium feature works by setting the attribute 'src' on the anchor to the src of the image using a.setAttribute('src', url); but later accesses it with a.src which return undefined since that attribute doesn't exist.
The fix for this is a one liner in the Webkit Message View plugin:
Adium.app/Contents/PlugIns/WebKit\ Message\ View.AdiumPlugin/Contents/Resources/Template.html:107
img.setAttribute('src', node.src );
Should be changed to:
img.setAttribute('src', node.getAttribute('src') );
This fixes the bug and makes the emotes return when you click the text replacement.
It should be noted that all the Template JS and Adium JS in general should be converted to either use direct access with .attr= or setAttribute/getAttribute because how attributes are set changes the rules about how they can be accessed.
comment:5 Changed 5 years ago by jas8522
- Patch Status changed from None to Initially Included
- field_haspatch changed from 0 to 1
Marking as patch included, however if you can make a diff patch for this and attach it here, it's usually preferred.
comment:6 Changed 5 years ago by Catfish_Man
- Owner set to Catfish_Man
- Status changed from new to assigned
Interesting. I will try this out this evening.
comment:7 Changed 5 years ago by catfish_man
- Status changed from assigned to closed
- Resolution set to fixed
(In [20700]) Patch from 'Zeros' on trac to fix clicking on emoticons in Safari 3. Thanks! Fixes #7148


Example