Closed Bug 191128 Opened 22 years ago Closed 22 years ago

Security error on trying to load local file from link on local web page

Categories

(Core :: Security, defect)

Sun
SunOS
defect
Not set
normal

Tracking

()

RESOLVED DUPLICATE of bug 122022

People

(Reporter: J.Campbell, Assigned: security-bugs)

Details

User-Agent:       Mozilla/5.0 (X11; U; SunOS sun4u; en-US; rv:1.3a) Gecko/20030116
Build Identifier: Mozilla/5.0 (X11; U; SunOS sun4u; en-US; rv:1.3a) Gecko/20030116

In my index.html file I have a simple link to a local file:
<A HREF="file:///opt/SUNWspro/docs/index.html">Sun Workshop Guide</A>
When trying to access this I get error report:
Security Error: Content at http://localhost/ may not load or link to
file:///opt/SUNWspro/docs/index.html.
JavaScript error: 
 line 0: uncaught exception: Load of file:/opt/SUNWspro/docs/index.html denied.

Security Error: Content at http://localhost/ may not load or link to
file:///opt/SUNWspro/docs/index.html.


Reproducible: Always

Steps to Reproduce:
1. Add simple file link to local file on web server index page
2. Display page using URI http://localhost/
3. Click on link to local file

Actual Results:  
In a non-debugging version of 1.3a nothing happens when clicking on the link.
The debugging version reports the above security error.

Expected Results:  
As in earlier versions and in Netscape 4.x etc I would expect to have this
file accessible!
Read the release notes first before you report a bug ?

>The debugging version reports
Tools/Web Development/Javascript console works also in non debug builds

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