In Gecko 1.8 or earlier, any two file: URIs are considered to be same-
origin.  In other words, any HTML file on your local disk can read any
other file on your local disk.
https://developer.mozilla.org/en/Same-origin_policy_for_file%3a_URIs

Or, if you need a web page with expanded privileges, you can use
netscape.security.PrivilegeManager.enablePrivilege() method.
http://www.mozilla.org/projects/security/components/signed-scripts.html

Honza



On 9 Bře, 19:06, "Cameron K." <[email protected]> wrote:
> So does that mean that I can't preview local files in a webpage at all?
>
> On Mon, Mar 9, 2009 at 12:58 AM, Jan Odvarko <[email protected]> wrote:
>
> > > Every time I type this, I can mouseover the "file:///home/~~"  and it
> > > shows me a preview of the image, but that image is not reflected in
> > > the actual webpage.
>
> > This is because Firebug loads the specified image as an extension that
> > has appropriate privileges (so the popup preview works), but a web
> > page can't access local (file://) resources.
> > Honza
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Firebug" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/firebug?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to