Bug 99043 - Javascript Image preloading bug: images fetched two times
Summary: Javascript Image preloading bug: images fetched two times
Status: CONFIRMED
Alias: None
Product: konqueror
Classification: Applications
Component: khtml ecma (show other bugs)
Version: unspecified
Platform: openSUSE Linux
: NOR normal
Target Milestone: ---
Assignee: Konqueror Developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-02-10 17:06 UTC by Daniel Kabs
Modified: 2021-03-21 00:25 UTC (History)
3 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments
Testcase: Live Webcam Image (3.11 KB, text/html)
2005-02-10 17:10 UTC, Daniel Kabs
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Daniel Kabs 2005-02-10 17:06:20 UTC
Version:            (using KDE KDE 3.2.1)
Installed from:    SuSE RPMs
OS:                Linux

Image pre-loading does not work as images loaded into a Javascript Image object are loaded twice:

The first time, when the image object src attribute is set.

The second time, when the image object has finished loading and its src attribute is
assigned to an image element's src attribute on the web page. This is wrong. The expected
behaviour is to fetch the image from the browser's cache instead (to save bandwidth and speed up
the whole process and to display the image without flickering).

Cheers 
Daniel Kabs
Germany
Comment 1 Daniel Kabs 2005-02-10 17:10:05 UTC
Created attachment 9539 [details]
Testcase: Live Webcam Image

A HTML-Page that shows webcam image and updates it periodically using
preloading technique for flicker free display.
Comment 2 Daniel Kabs 2005-02-11 10:03:12 UTC
Konqueror 3.3 (KDE 3.3.0) has this bug, too.
Comment 3 Steve Ladjabi 2005-02-11 19:00:54 UTC
*** This bug has been confirmed by popular vote. ***
Comment 4 Daniel Kabs 2005-02-14 10:44:17 UTC
Bug can be confirmed with Apple's KHTML based Safari Browser, Version 1.2.
Comment 5 Daniel Kabs 2005-03-22 11:22:21 UTC
Bug can be worked around by sending a "Last-modified:" HTTP header indicating a date older than one day. Thus this bug does not appear with static images but only with live images streamed from e.g. a web cam.
Comment 6 FiNeX 2008-04-20 20:31:20 UTC
Behaviour confirmed on konqueror 4 in trunk, the GET is called two time for the same image request.
Comment 7 Thomas Haenig 2008-06-30 16:05:03 UTC
maybe I stumbled ove a similar problem:

http://bugs.kde.org/show_bug.cgi?id=149388

stiil the same in version 3.5.7 release 72.9
Comment 8 Samuel Brack 2011-01-04 23:50:01 UTC
*** Bug 149388 has been marked as a duplicate of this bug. ***
Comment 9 Samuel Brack 2011-01-07 13:49:40 UTC
Assigning this bug to khtml ecma, since it seems to be a JS problem.
Comment 10 Thomas Haenig 2011-01-07 13:59:21 UTC
If this really is a JS problem then #149388 is no duplicate of this bug and should be reopened because there is no JS used.
Comment 11 Samuel Brack 2011-01-07 14:04:25 UTC
Hm you're right, I'll reopen it. These are 2 different bugs. Thanks for your feedback, Thomas :-)
Comment 12 Justin Zobel 2021-03-21 00:25:35 UTC
Thank you for the bug report.

As this report hasn't seen any changes in 10 years or more, we ask if you can please confirm that the issue still persists.

If this bug is no longer persisting or relevant please change the status to resolved.