Closed Bug 83898 Opened 24 years ago Closed 24 years ago

can't access local file without file:///

Categories

(Core :: DOM: Navigation, defect)

x86
Linux
defect
Not set
normal

Tracking

()

RESOLVED DUPLICATE of bug 50131

People

(Reporter: hingwah, Assigned: adamlock)

References

Details

Attachments

(1 file)

build: Mozilla/5.0 (X11; U; Linux 2.4.2-ac20 i686; en-US; rv:0.9.1) I wonder if it is a bug or intended. I find that I can no long such as access file by typing "/foo/bar.html" but must use "file:///foo/bar.html"
Looks like a fixupURI issue. Over to docshell. http://lxr.mozilla.org/seamonkey/source/docshell/base/nsDefaultURIFixup.cpp#147 looks like it tries to test for leading "/", though... so this should be working.
Assignee: asa → adamlock
Component: Browser-General → Embedding: Docshell
QA Contact: doronr → adamlock
The URI fixup code is creating an nsILocalFile object using NS_NewLocalFile() for the path but it appears the object does not return a file:// URL from calling GetURL. This line appears to explain the reason for that: http://lxr.mozilla.org/seamonkey/source/xpcom/io/nsLocalFileUnix.cpp#1306 Therefore, the proper solution is to implement this method.
Status: UNCONFIRMED → NEW
Ever confirmed: true
Depends on: 56354
dup bug 50131 I think *** This bug has been marked as a duplicate of 50131 ***
Status: NEW → RESOLVED
Closed: 24 years ago
Resolution: --- → DUPLICATE
reporter: can you describe the exact steps you want to use as an entry point?
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: