Closed Bug 265799 Opened 20 years ago Closed 18 years ago

page gets requested twice on empty href in css link

Categories

(Firefox :: General, defect)

x86
Windows XP
defect
Not set
minor

Tracking

()

RESOLVED DUPLICATE of bug 106912

People

(Reporter: borgar, Assigned: bugzilla)

Details

User-Agent:       Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7) Gecko/20040803 Firefox/0.8
Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7) Gecko/20040803 Firefox/0.8

Including this code <link  href="" rel="stylesheet" type="text/css" /> in a page
will make Firefox request the page URL again. 

Reproducible: Always
Steps to Reproduce:
1. Save out this code to a webserver under your control:

<html>
  <head>
    <title>Bug or feature?</title>
    <link rel="stylesheet" type="text/css" href="default.css" title="Default
Style" />
    <link rel="stylesheet" type="text/css" href="" title="Re-requests page" />
  </head>
  <body>
    <p>Bug or feature?</p>
  </body>
</html>

2. Navigate to it with Firefox.

Actual Results:  
Logfiles (and packet sniffers) show requests for foo.html, default.css, and then
foo.html again.


Expected Results:  
Browser should either detect that the URL has been loaded in this "hit" and
parse the downloaded one (as it should if I were to include, in a single file,
two CSS links to the same URL). OR it should detect that the link is empty and
do nothing.
This is what should happen. See bug 263980 comment 1.

*** This bug has been marked as a duplicate of 263980 ***
Status: UNCONFIRMED → RESOLVED
Closed: 20 years ago
Resolution: --- → DUPLICATE
Status: RESOLVED → UNCONFIRMED
Resolution: DUPLICATE → ---

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