Closed Bug 62288 Opened 24 years ago Closed 22 years ago

No onload events after first load of image

Categories

(Core :: DOM: UI Events & Focus Handling, defect, P3)

defect

Tracking

()

VERIFIED WORKSFORME
mozilla1.1alpha

People

(Reporter: mackenna, Assigned: joki)

References

()

Details

It seems that none of Mozilla 0.6, nor M18, nor Netscape 6.0, report an onload
event for the loading of an Image object, nor for subsequent reassignments of
the src property of an image that's defined as part of a web page's HTML.  This
differs from the behavior of NS 3, NS 4, IE 4, and IE 5.

The workarounds that we use in our main front page,
http://www.animalhead.com/index.html, are commented out in the cited "oldindex"
page.
Browser, not engine. Reassigning to Event Handling component -
Assignee: rogerl → joki
Component: Javascript Engine → Event Handling
QA Contact: pschwartau → lorca
I have reproduced part of this bug. I refute that <object> tags fail onLoad and
I support that REloading of <img> tags fail.

I have made a minimal test case at

http://www.dartmouth.edu/~nrrinard/dev/moz/moz_bug_62288_test.html

This is using Mozilla .6 for the Mac under OS 9.0.4 on a Rev. A iMac.
Worksforme
Platform: PC
OS: Linux 2.2.16
Mozilla Build: 2000121908 M18 Trunk Build.
I can reproduce the reduced testcase on Linux 2000133618 (CVS build).
After talking on #mozillazine some people are still seeing this. Marking as NEW.
Status: UNCONFIRMED → NEW
Ever confirmed: true
Reassigning QA Contact for all open and unverified bugs previously under Lorca's
care to Gerardo as per phone conversation this morning.
QA Contact: lorca → gerardok
Setting milestone
Status: NEW → ASSIGNED
Target Milestone: --- → mozilla0.9
*** Bug 70178 has been marked as a duplicate of this bug. ***
Time constraints on crashing bugs forcing this to 0.9.1
Target Milestone: mozilla0.9 → mozilla0.9.1
Verified with Windows-NT4
OS: Mac System 9.x → All
Hardware: Macintosh → All
moving to TM of 0.9.2 per PDT triage (you can check it into 0.9.1 until Friday,
18/May/01 or into 0.9.2 after the tree opens)
Target Milestone: mozilla0.9.1 → mozilla0.9.2
QA contact updated
QA Contact: gerardok → madhur
Apologies if this is already known, but it is not apparent from the comments so 
far.  The problem is that when an image is available in Mozilla's memory cache, 
it does not trigger an onload event upon its retrieval.  It therefore affects 
any image that has been seen before in the current browser session.
Moving lower priority bugs out of .9.2 milestone.
Target Milestone: mozilla0.9.2 → mozilla0.9.3
*** Bug 90040 has been marked as a duplicate of this bug. ***
Bug 74993 may be related.
Doesn't look like this is getting fixed before the freeze tomorrow night.
Pushing out a milestone.  Please correct if I'm mistaken.
Target Milestone: mozilla0.9.3 → mozilla0.9.4
*** Bug 74993 has been marked as a duplicate of this bug. ***
The 8/22/01 build shows progress on this problem.
But the subject URL still does not run as on other browsers.
Please keep up the good work!
->0.9.5
Target Milestone: mozilla0.9.4 → mozilla0.9.5
An easier to follow demonstration of this bug can be found on:
http://www.numion.com/opera/
Moving to 0.9.6
Target Milestone: mozilla0.9.5 → mozilla0.9.6
Easy workaround for this bug:

1. Enclose IMG element in SPAN
<span id="workaround"><img src=(...)></span>
2. After changing SRC attribute do this:
spanobj=document.getElementById('workaround');
spanobj.innerHTML=spanobj.innerHTML;

It works for me, tested on Mozilla build 2001101117 and Netscape 6.2, on Win2000
0.9.6 has passed, moving to 0.9.7.  Load balancing 0.9.7 list shortly
Target Milestone: mozilla0.9.6 → mozilla0.9.7
The workaround reported by Piotr Pawlow works for me as well, but makes 
the browser insufferably slow. I have decided not to use the workaround in the 
speedtest on www.numion.com, and wait for a proper bugfix.
*** Bug 117053 has been marked as a duplicate of this bug. ***
Moving bugs from 0.9.7 for triaging in 0.9.8
Target Milestone: mozilla0.9.7 → mozilla0.9.8
Target Milestone: mozilla0.9.8 → mozilla0.9.9
Target Milestone: mozilla0.9.9 → mozilla1.1
WFM with 200231503
Status: ASSIGNED → RESOLVED
Closed: 22 years ago
Resolution: --- → WORKSFORME
Original reporter: WFM2.  
This open source stuff is neat!  You just report a bug and 15 months later someone fixes it 
:-)
*** Bug 132052 has been marked as a duplicate of this bug. ***
verifying
Status: RESOLVED → VERIFIED
Is this the same as bug 93015 ?
Component: Event Handling → User events and focus handling
You need to log in before you can comment on or make changes to this bug.