Closed Bug 305433 Opened 20 years ago Closed 20 years ago

The png image cannot display when the html and png are not location in same location

Categories

(Firefox :: File Handling, defect)

defect
Not set
normal

Tracking

()

RESOLVED INVALID

People

(Reporter: tony, Unassigned)

References

()

Details

User-Agent: Mozilla/5.0 (Macintosh; U; PPC Mac OS X Mach-O; en-US; rv:1.7.10) Gecko/20050716 Firefox/1.0.6 Build Identifier: Mozilla/5.0 (Macintosh; U; PPC Mac OS X Mach-O; en-US; rv:1.7.10) Gecko/20050716 Firefox/1.0.6 the png cannot display when the html and png are not in same location. Reproducible: Always Steps to Reproduce: 1.Make a html and make a png file pngtest.html -> <img src="file:///test.png"> 2.if html the file location in "/" it work !! 3.if the file location in other place eg: "www.tonytse.net/pngtest.html" it cannot diaply the image! Actual Results: cannot view the image
Summary: The png image cannot display when the html and png is not location in same location → The png image cannot display when the html and png are not location in same location
Links to file: are blocked by the security manager. File links are only allowed if the Document with the link itself is also loaded with a file: URL. -> invalid (by design)
Status: UNCONFIRMED → RESOLVED
Closed: 20 years ago
Resolution: --- → INVALID
By default, remote web pages (http://) cannot link to local (file://) content. You can change the security.checkloaduri pref to turn this check off globally. Mozilla 1.8 based development builds allow per-site control, but since you're using Firefox 1.0 that doesn't apply. Marking invalid.
You need to log in before you can comment on or make changes to this bug.