Closed Bug 269860 Opened 20 years ago Closed 20 years ago

Problem browsing local files with pathing to CSS, JS files

Categories

(Firefox :: File Handling, defect)

x86
Windows XP
defect
Not set
normal

Tracking

()

RESOLVED DUPLICATE of bug 143021

People

(Reporter: intechsw, Assigned: bugs)

Details

User-Agent:       Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; .NET CLR 1.1.4322)
Build Identifier: FireFox 1.0

My HTML pages all contain absolute paths to my CSS files.
e.g. <link href="/weblib/webscrn.css" rel="stylesheet">
The /weblib is a virtual directory on the web server when running in 
production.

When browsing local files on my C Drive under Internet Explorer (e.g. by 
clicking on the HTM using explorer), IE seems to look for the CSS file in 
c:\weblib on my local disk and therefore my page gets rendered correctly 
locally.
This allows me to prototype/test my HTML files locally without first having to 
copy them up to a web server to test.

But Firefox doesn't seem to support this useful ability. Unfortunately I can 
not replace IE with FF without support for this feature.

If I remove the leading "/" from the path then Firefox finds the local CSS 
files correctly if I keep a copy of the CSS file in a WEBLIB folder underneath 
the folder as the HTML files. I do not want to have to remove the leading "/" 
just to be able to view the page locally, I would have to put it back before 
uploading the pages to the web server.

Ideally I would like Firefox to look for (in my example) the CSS files in a 
folder called \WEBLIB off the ROOT of my current local drive when the HTML 
<link...> command as above has the path as /WEBLIB/WEBSCRN.CSS.

Ross.



Reproducible: Always
Steps to Reproduce:
1.
2.
3.
Substituting "file:///c:/" or a proper number of "../"s for the leading "/"
makes it work in FF. - Only a comment, certainly not a solution.
Inspired by other bug reports I have tried to create subfolder _common with file
roottest.js within C:\Program Files\Mozilla Firefox and its subfolders, and then
tested
  <script language="javascript" src="/_common/roottest.js"></script>
but, alas, to no avail. I havn't tried deeper nestings, maybe someone with
better knowledge to the structure have ideas?

The problem exists also on other disk partitions.
see Bug 143021

*** This bug has been marked as a duplicate of 143021 ***
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.