Closed
Bug 278939
Opened 20 years ago
Closed 20 years ago
empty img src tag executes page twice
Categories
(Firefox :: General, defect)
Tracking
()
RESOLVED
DUPLICATE
of bug 263239
People
(Reporter: jmcclelland, Assigned: bugzilla)
Details
Attachments
(1 file)
240 bytes,
text/plain
|
Details |
User-Agent: Mozilla/5.0 (Macintosh; U; PPC Mac OS X Mach-O; en-US; rv:1.7.5) Gecko/20041107 Firefox/1.0
Build Identifier: Mozilla/5.0 (Macintosh; U; PPC Mac OS X Mach-O; en-US; rv:1.7.5) Gecko/20041107 Firefox/1.0
When accessing a page with a <img src=""> line, firefox seems to retrieve the
file twice, while only displaying it once.
For example, if firefox hits a php page with the following code:
<html>
<head>
<title>PHP test</title>
</head>
<body>
<img src="">
<?php
$time = date("h:i:s");
echo "Time: $time<br>";
$handle = fopen('/tmp/mozilla_test.txt','a');
fwrite($handle,"$time\n\n");
fclose($handle);
sleep(3);
?>
</body>
</html>
The browser will only display the time once. However, the file
/tmp/mozilla_test.txt will have the time written to it two times.
This is a big problem with sites that have database code. Firefox will cause
certain sql statements to be execute twice. Safari and IE do not behave the same
way.
Reproducible: Always
Steps to Reproduce:
1. Place file containing code from details section on your web server. Make sure
that the /tmp directory is writable by your web server.
2. Access the code using Firefox
3. Read the file /tmp/mozilla_test.txt.
Actual Results:
Firefox displays the time once. The /tmp/mozilla_test.txt file has the time
written to it two times.
Expected Results:
The /tmp/mozilla_test.txt file should only have the time written to it one time.
Reporter | ||
Comment 1•20 years ago
|
||
Comment 2•20 years ago
|
||
*** This bug has been marked as a duplicate of 263239 ***
Status: UNCONFIRMED → RESOLVED
Closed: 20 years ago
Resolution: --- → DUPLICATE
You need to log in
before you can comment on or make changes to this bug.
Description
•