Open Bug 287669 Opened 20 years ago Updated 2 years ago

load event not triggered for cached images loaded directly in <browser>

Categories

(Core :: Graphics: ImageLib, defect)

x86
Linux
defect

Tracking

()

People

(Reporter: bugzilla.mozilla.org-3, Unassigned)

Details

Steps to reproduce:
1. Open browser/base/content/browser.js in a text editor
2. Add the following line to delayedStartup():
gBrowser.addEventListener("load", function(evt) { alert("load listener 
triggered"); }, true);
3. Build and restart Firefox
4. Watch the network traffic from Firefox using e.g. the Live HTTP Headers 
extension
4. Open http://www.mozilla.org/
5. Press reload and shift-reload a few times
6. Open http://www.mozilla.org/images/mozilla-16.png
7. Press reload and shift-reload a few times

Expected result:
An alert should open on each reload in steps 5 and 7, both regular reloads (from 
cache) and forced reloads.

Actual results:
As expected, alerts are always opened when http://www.mozilla.org/ is reloaded. 
However, when the picture is reloaded and the server returns a 304 Not Modified 
status line, an alert is not opened.
-> imagelib
Component: Networking: Cache → ImageLib
Assignee: darin → pavlov
QA Contact: networking.cache
Assignee: pavlov → nobody
QA Contact: imagelib
Severity: normal → S3
You need to log in before you can comment on or make changes to this bug.