Closed
Bug 309141
Opened 19 years ago
Closed 19 years ago
[FIX]Smileys in Chatzilla embedded via content: url[...] are not displayed the first time
Categories
(Core :: CSS Parsing and Computation, defect, P1)
Core
CSS Parsing and Computation
Tracking
()
RESOLVED
FIXED
mozilla1.9alpha1
People
(Reporter: mcsmurf, Assigned: bzbarsky)
References
Details
Attachments
(1 file, 1 obsolete file)
(deleted),
patch
|
Biesinger
:
review+
dbaron
:
superreview+
|
Details | Diff | Splinter Review |
In a current nightly trunk build smileys are sometimes not displayed in
Chatzilla, this /could/ be a fall-out from Bug 11011. To reproduce just join any
channel and type any smileys like :), :D, :/, :DD, XD, etc. and repeat those
smilies. It seems the first time you use a smiley in Chatzilla it is not
displayed, the second, third, etc. time you use it it works. DOMI shows the XML
for the smileys is inserted correctly (and if you hover over where the smiley
should be, you get the title attribute as a tooltip as it should be). The CSS
for inserting the smilies can be found under
http://lxr.mozilla.org/mozilla/source/extensions/irc/xul/content/output-base.css#355.
Reporter | ||
Comment 1•19 years ago
|
||
The XML looks like this for inserting a smiley (from DOMI):
<span>
<span class="chatzilla-emote-txt" type="face-laugh">
:D </span>
<span class="chatzilla-emote" type="face-laugh" title=":D"/>
</span>
Assignee | ||
Comment 2•19 years ago
|
||
Fun times. The only reason the second and later smilies show at all is because
of that sync mess in imagelib, which causes an UpdateState call from
OnStopDecode. And of course I never managed to catch it in testing since I'd
only used images in generated content that I'd already loaded once before that
browsing session. The basic problem is that when we set up the generated image
content we don't update its state to indicate that it now has a request....
Assignee: dbaron → bzbarsky
Blocks: moz-broken
OS: Windows 2000 → All
Priority: -- → P1
Hardware: PC → All
Summary: Smileys in Chatzilla embedded via content: url[...] are not displayed the first time → [FIX]Smileys in Chatzilla embedded via content: url[...] are not displayed the first time
Target Milestone: --- → mozilla1.9alpha
Assignee | ||
Comment 3•19 years ago
|
||
Attachment #196651 -
Flags: superreview?(dbaron)
Attachment #196651 -
Flags: review?(cbiesinger)
Comment 4•19 years ago
|
||
so GenConImageContent handles the load behind nsImageLoadingContent's back? how
about instead providing a protected method "CloneRequest(imgIRequest*)" which
handles this? that could be on the IDL too.
Assignee | ||
Comment 5•19 years ago
|
||
If you think that would be a better idea, sure. I can do that...
Comment 6•19 years ago
|
||
yes, I'd prefer that.
Assignee | ||
Comment 7•19 years ago
|
||
I'd rather not put this on the IDL until I've had time to think about that...
Attachment #196670 -
Flags: superreview?(dbaron)
Attachment #196670 -
Flags: review?(cbiesinger)
Assignee | ||
Updated•19 years ago
|
Attachment #196651 -
Attachment is obsolete: true
Attachment #196651 -
Flags: superreview?(dbaron)
Attachment #196651 -
Flags: review?(cbiesinger)
Comment 8•19 years ago
|
||
Comment on attachment 196670 [details] [diff] [review]
With protected method
r=biesi, but why "will try to notify" instead of "will notify"?
Attachment #196670 -
Flags: review?(cbiesinger) → review+
Assignee | ||
Comment 9•19 years ago
|
||
Because it may not notify if there is no current doc.
Comment 10•19 years ago
|
||
but the same is true for ImageURIChanged, right? that one doesn't say "try"
Assignee | ||
Comment 11•19 years ago
|
||
Fair enough. I'll make sure the two say the same thing before checking in.
Comment 12•19 years ago
|
||
Comment on attachment 196670 [details] [diff] [review]
With protected method
Isn't some of the cancelling going on in this function cancelling stuff that
should never be going on? If so, should some of this be assertions rather than
actually doing things? Either way, sr=dbaron, since I trust you guys and I
don't think it's worth my remembering how this code actually works.
Attachment #196670 -
Flags: superreview?(dbaron) → superreview+
Assignee | ||
Comment 13•19 years ago
|
||
I could make them assertions as things stand, yeah. I figured I might as well
make the method generally useful, though.
Assignee | ||
Comment 14•19 years ago
|
||
Fixed.
Status: NEW → RESOLVED
Closed: 19 years ago
Resolution: --- → FIXED
You need to log in
before you can comment on or make changes to this bug.
Description
•