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)

defect

Tracking

()

RESOLVED FIXED
mozilla1.9alpha1

People

(Reporter: mcsmurf, Assigned: bzbarsky)

References

Details

Attachments

(1 file, 1 obsolete file)

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.
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>
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
Attached patch Patch (obsolete) — Splinter Review
Attachment #196651 - Flags: superreview?(dbaron)
Attachment #196651 - Flags: review?(cbiesinger)
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.
If you think that would be a better idea, sure.  I can do that...
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)
Attachment #196651 - Attachment is obsolete: true
Attachment #196651 - Flags: superreview?(dbaron)
Attachment #196651 - Flags: review?(cbiesinger)
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+
Because it may not notify if there is no current doc.
but the same is true for ImageURIChanged, right? that one doesn't say "try"
Fair enough.  I'll make sure the two say the same thing before checking in.
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+
I could make them assertions as things stand, yeah.  I figured I might as well
make the method generally useful, though.
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.

Attachment

General

Created:
Updated:
Size: