Closed Bug 277259 Opened 20 years ago Closed 20 years ago

malformed url (two "/" at the end) causes style sheets to be ignored

Categories

(Firefox :: Page Info Window, defect)

x86
Windows XP
defect
Not set
normal

Tracking

()

RESOLVED INVALID

People

(Reporter: jlamberes, Assigned: bugs)

References

()

Details

User-Agent:       Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7.5) Gecko/20041107 Firefox/1.0
Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7.5) Gecko/20041107 Firefox/1.0

when entering a URL, if there is an extra "/" at the end - in other words two
"/", the CSS is completley ignored.

http://www.mozilla.org/products/firefox//


Reproducible: Always

Steps to Reproduce:
1.Type in "http://www.mozilla.org/products/firefox//"
2.
3.

Actual Results:  
No CSS

Expected Results:  
Detected all extra forward slashes at the end and removed them before requesting
page from server.
This isn't a page info bug.

The behaviour you see is because the stylesheets are using relative urls that
have '../' in them. When you use a url like 'foo//' to request a resource, the
relative url '../bar' becomes 'foo/bar' instead of 'bar'. 

If this is actually a bug, I'd guess it's a DOM bug. However, Mozilla probably
can't just "correct" the url (suppose I _want_ to send the server two
backslashes in a row), so I'm marking the bug invalid.
Status: UNCONFIRMED → RESOLVED
Closed: 20 years ago
Resolution: --- → INVALID
You need to log in before you can comment on or make changes to this bug.