Closed Bug 69975 Opened 24 years ago Closed 24 years ago

File link does not work in html document

Categories

(Core :: Security, defect)

x86
Linux
defect
Not set
normal

Tracking

()

VERIFIED DUPLICATE of bug 40538

People

(Reporter: jss, Assigned: dougt)

References

()

Details

From Bugzilla Helper:
User-Agent: Mozilla/5.0 (X11; U; Linux 2.2.18 i686; en-US; 0.8) Gecko/20010219
BuildID:    2001021908

If I type the above link (which corresponds to an HTML file in
/data/soft3/web-private/xray_howto.html on the local disk), mozilla displays the
local file correctly.

If the link is in another html document (http, not file), with the following html:

<li><a
href="file:///data/soft3/web-private/xray_howto.html">
Cambridge X-ray Astronomy Group howto and FAQ file</a></li>

Then the link does not work. Mozilla does nothing when it is clicked on.


Reproducible: Always
Steps to Reproduce:
Using /etc/passwd as an example.

1. Create html document with the following code (on Linux):<html>
<body>

<h1>Test</h1>

<p><a href="file:///etc/passwd">test link</a></p>

</body>
</html>

2. Load document and attempt to click on link.
3. Enter URL file:///etc/passwd manually - it works.


Actual Results:  Nothing happens when the link is clicked on.


Expected Results:  Passwd file should have been displayed.
This is a dupe of bug 40538.
(See also bug 67200)

*** This bug has been marked as a duplicate of 40538 ***
Status: UNCONFIRMED → RESOLVED
Closed: 24 years ago
Resolution: --- → DUPLICATE
Verified duplicate.
Status: RESOLVED → VERIFIED
-> sec:gen
Component: Networking: File → Security: General
QA Contact: tever
You need to log in before you can comment on or make changes to this bug.