Closed Bug 303624 Opened 19 years ago Closed 19 years ago

Pages with <img src=''> are loaded twice

Categories

(Firefox :: General, defect)

x86
Linux
defect
Not set
normal

Tracking

()

RESOLVED DUPLICATE of bug 225554

People

(Reporter: buzanits, Unassigned)

Details

User-Agent:       Mozilla/5.0 (X11; U; Linux i686; de-DE; rv:1.7.10) Gecko/20050717 Firefox/1.0.6
Build Identifier: Mozilla/5.0 (X11; U; Linux i686; de-DE; rv:1.7.10) Gecko/20050717 Firefox/1.0.6

If there is a page with an image tag, that has an empty src attribute (<img
src=''>) the page is loaded twice. This can be bad with scripts, that do
something they should only do once.

Reproducible: Always

Steps to Reproduce:
1. Make a script page with <img src=''> in it.
2. Put some code into it, that writes some text in a File
3. Look, if this text is written twice to the file.

Actual Results:  
the text is written twice to the file.

Expected Results:  
Load the page only once.
This is expected. A blank url is taken as relative to the current page and so
resolves to the same as the current page so mozilla attempts to load the current
page as the image.

It is of course only a GET request and the HTTP spec suggests that these are
never used to make any changes.

Status: UNCONFIRMED → RESOLVED
Closed: 19 years ago
Resolution: --- → INVALID
Status: RESOLVED → UNCONFIRMED
Resolution: INVALID → ---

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