Bug 31922 - <img>/<script>/<link> tags with src=""/href="" cause request to server
Summary: <img>/<script>/<link> tags with src=""/href="" cause request to server
Status: RESOLVED DUPLICATE of bug 30303
Alias: None
Product: WebKit
Classification: Unclassified
Component: Images (show other bugs)
Version: 528+ (Nightly build)
Hardware: PC OS X 10.5
: P2 Normal
Assignee: Nobody
Depends on:
Reported: 2009-11-26 17:51 PST by Nicholas C. Zakas
Modified: 2009-11-26 20:56 PST (History)
0 users

See Also:


Note You need to log in before you can comment on or make changes to this bug.
Description Nicholas C. Zakas 2009-11-26 17:51:17 PST
Chrome/Safari makes another request to the page when encountering:
<img src="">
<script src="">
<link href="">

For example, if the page is hosted at http://www.example.com/dir/mypage.htm,
each of these cause another request to be made to
http://www.example.com/dir/mypage.htm. This seems like a serious bug that has
the potential to do a lot of damage to servers.

Example page:

    <title>Bad Image</title>
<img src="">

Reproducible: Always

Steps to Reproduce:
1. Create a page with one of the offending patterns.
2. Load the page while watching HTTP traffic.
Actual Results:  
Observe that there are multiple requests to the same page.

Expected Results:  
There should be only one request to the specified page.

Note: Opera doesn't fire a request under any of these circumstances and Internet
Explorer only fires a request for <img src="">, but not for the others. Firefox behaves the same as Safari/Chrome.
Comment 1 Alexey Proskuryakov 2009-11-26 20:56:11 PST
Why do you think it's a bug? It's exactly what the page author asked for. What kind of damage can this do to servers?

Anyway, marking as duplicate.

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