Closed Bug 376817 Opened 17 years ago Closed 17 years ago

anonymous html:img doesn't show on FF2

Categories

(Core :: XBL, defect)

1.8 Branch
x86
Windows XP
defect
Not set
normal

Tracking

()

RESOLVED WONTFIX

People

(Reporter: aaronr, Unassigned)

References

Details

Attachments

(1 file)

1.82 KB, application/xhtml+xml
Details
Attached file testcase
If I have an html:img as my anonymous content and set the src attr during construction, the image doesn't show.  However, if I set the src attr of a non-anonymous image using JS, it works.  This bug appears on FF2.x and FF1.5.x.  Bug does not appear on trunk.

Any chance of getting this fixed on the 1.8 branch at least?  It is blocking an xforms feature.
Unfortunately I doubt a fix would match any of the criterias we have for branch patches. Is this a regression by any chance?

If so, please attach a simple testcase
This got fixed on trunk by the fix for bug 11011.  That bug is in the "no way it lands on branch" category.

The real issue, probably, is that on branch XBL constructors run at an unsafe time.  Touching the DOM from them is:

1)  Not safe (can crash).
2)  May not work right.

Simply putting the src set off on a timeout should make things work.
Oh, and your other option given that testcase is to use xbl:inherits.  Not sure whether that's an option with your real use case.
(In reply to comment #2)
> This got fixed on trunk by the fix for bug 11011.  That bug is in the "no way
> it lands on branch" category.
> 
> The real issue, probably, is that on branch XBL constructors run at an unsafe
> time.  Touching the DOM from them is:
> 
> 1)  Not safe (can crash).
> 2)  May not work right.
> 
> Simply putting the src set off on a timeout should make things work.
> 

using the timeout worked like a charm.  Thanks for the quick feedback!  Resolving bug as WONTFIX per comment #2
Status: NEW → RESOLVED
Closed: 17 years ago
Resolution: --- → WONTFIX
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: