Closed Bug 276287 Opened 20 years ago Closed 20 years ago

<img src=""> creates spurious server hits

Categories

(Firefox :: General, defect)

x86
Windows XP
defect
Not set
normal

Tracking

()

VERIFIED DUPLICATE of bug 225554

People

(Reporter: chris, Assigned: bugzilla)

Details

When Mozilla encounters an IMG tag with an empty src attribute (<img src="">),
it makes a request from the server for an image with the same URL as the page
containing the tag.  This does not cause a problem for the client, but on the
server (on mine, at least), it triggers error handling code that causes all
kinds of grief.

If the src attribute is not specified (<img>), the problem does not manifest itself.

I believe that if an empty src is specified for the IMG tag, the browser should
make no attempt to retrieve the image.
PS This was observed on:

Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7.5) Gecko/20041107 Firefox/1.0
That's exactly what should happen: src is a URI, so src="" means the base URI,
the URL for the page. If you look closely at those two hits, you should see that
the first sends "Accept:
text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5"
and the second sends "Accept: image/png,*/*;q=0.5" because for all Firefox knows
you did that intentionally so you could do content negotiation.
Status: UNCONFIRMED → RESOLVED
Closed: 20 years ago
Resolution: --- → INVALID
Status: RESOLVED → VERIFIED
Status: VERIFIED → UNCONFIRMED
Resolution: INVALID → ---

*** This bug has been marked as a duplicate of 225554 ***
Status: UNCONFIRMED → RESOLVED
Closed: 20 years ago20 years ago
Resolution: --- → DUPLICATE
Status: RESOLVED → VERIFIED
You need to log in before you can comment on or make changes to this bug.