[Project_owners] Accessing a Chrome URL from a website

Pete Collins pete at mozdev.org
Thu Jan 22 19:44:35 EST 2004

John Dobbins wrote:
> I Need to figure out how to access a local file from a web page.
> The Local File will be a html page stored in a jar file. It's content 
> that never changes, but I need a web site html page for dynamic content. 
> It's easy to move from the local page to the web page, but I can't get 
> Mozilla to return from the webpage to the local file. I placed a 
> chrome://file/locale/page.html link in the web page but the browser 
> won't return to the local file via this link.
> Any ideas?

John, you will get a security error. A remote page can not access a 
chrome url.

You will need to write an extension that will load the file for you.


Pete Collins

More information about the Project_owners mailing list