Bug 25015 - When a javascript file is included in head section, it results in body images to be called twice
Summary: When a javascript file is included in head section, it results in body images...
Status: RESOLVED DUPLICATE of bug 24747
Alias: None
Product: WebKit
Classification: Unclassified
Component: New Bugs (show other bugs)
Version: 528+ (Nightly build)
Hardware: PC Windows XP
: P2 Normal
Assignee: Nobody
URL:
Keywords: HasReduction
Depends on:
Blocks:
 
Reported: 2009-04-02 17:54 PDT by jasneet
Modified: 2009-04-02 18:22 PDT (History)
1 user (show)

See Also:


Attachments
testcase (620 bytes, application/zip)
2009-04-02 17:55 PDT, jasneet
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description jasneet 2009-04-02 17:54:47 PDT
I Steps:
1. Save the following as test.html
<html>
  <head>
    <script type="text/javascript" src="test.js"></script>
  </head>
  <body>
    <img src="image.jsp">
  </body>
</html>

2. Create a dynamic page (ex. image.jsp, image.php) file which increments 
some counter or simply outputs a text to system console (This is to 
implement something to track the requests for this file). Put this file in 
the same directory with test.html

3. Browse test.html

II Issue: 
It is expected that the image file is called once thus incrementing the 
counter or outputting to system console once. The image file is called twice thus incrementing the counter or outputting to system console twice. This problem affects the dynamic image generating pages, triggering the image generation logic twice. It may be required to refresh the test.html to reproduce the problem.

III Other Browsers:
FF3: ok
IE7: ok 

IV Nightly tested: 41855

Bug in Chromium : http://code.google.com/p/chromium/issues/detail?id=9534
Comment 1 jasneet 2009-04-02 17:55:04 PDT
Created attachment 29212 [details]
testcase
Comment 2 Mark Rowe (bdash) 2009-04-02 18:22:34 PDT

*** This bug has been marked as a duplicate of 24747 ***