Closed
Bug 433481
Opened 18 years ago
Closed 18 years ago
tag <img src=""> will due to load current url again
Categories
(Firefox :: General, defect)
Tracking
()
RESOLVED
DUPLICATE
of bug 106912
People
(Reporter: scsichen, Unassigned)
Details
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; zh-TW; rv:1.9pre) Gecko/2008051206 Minefield/3.0pre
Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.1; zh-TW; rv:1.9pre) Gecko/2008051206 Minefield/3.0pre
when page have img tag whit empty src like <img src="">, it will due to load url again.
ex.
when you open url like http://aa.bb.cc/action.do?person=abc by firefox, and this page have a tag <img src=""> , then server will receive http://aa.bb.cc/action.do?person=abc request again, it may couse some problem to server and firefox may execte slower to this page(because this page should load twice).
I have try IE and Konqueror, they work fine in this case
Reproducible: Always
Steps to Reproduce:
1. generate a server page with tage <img src="">
2. use firefox to open this page
3. see log to server
Comment 1•18 years ago
|
||
http://www.ietf.org/rfc/rfc2396.txt
<quote>
4.2. Same-document References
A URI reference that does not contain a URI is a reference to the
current document.
</quote>
Status: UNCONFIRMED → RESOLVED
Closed: 18 years ago
Resolution: --- → DUPLICATE
Comment 2•18 years ago
|
||
Only Konqueror does not contained this "bug" :
- IE7
- Safari
- Firefox
load twice url.
It can make many errors in case of Apache2/PHP server whith BDD "insert" (2 insertions with this reload).
The logs of apache2 server (all os) show that the navigator get the page two times.
Sorry for my bad english (i'm french)
Exemple of PHP script (index.php):
--------------------------------------
<?php
session_start();
if (isset($_SESSION["nb"])){
$_SESSION["nb"]++;
}
else{
$_SESSION["nb"]=0;
}
?>
<html>
<head><title>Bug test</title></head>
<body>
<a href="index.php?var1=xxx">click me</a>
<?php echo "<h1>Load : ".$_SESSION["nb"]."</h1>"; ?>
<img src="" />
</body>
</html>
-----------------------------
AL
You need to log in
before you can comment on or make changes to this bug.
Description
•