Re: FilePicker for non-chrome URLs?

Craig McDaniel <[email protected]>
Newsgroups gmane.comp.mozilla.devel.xpfe
Message-ID <[email protected]>
On Saturday, February 23, 2013 11:54:28 AM UTC-5, [email protected] wrote:
> On Saturday, February 23, 2013 3:47:01 AM UTC+8, Craig McDaniel wrote:
> 
> > I work on a Xul application is primarily a GWT (Google Web Toolkit (html+js)) app loaded via chrome:// url. However, at certain points our GWT app sends the user to an http:// url. We would like to be able to support file downloads from certain non-chrome sites, but according to the documentation here ( https://developer.mozilla.org/en-US/docs/XUL/Tutorial/Open_and_Save_Dialogs ), the file picker only works from chrome URLs. Is there a way to bypass this restriction for certain http hosts?
> 
> 
> 
> Take a look at https://developer.mozilla.org/en-US/docs/Code_snippets/Interaction_between_privileged_and_non-privileged_pages
> 
> 
> 
> It allows triggering events in chrome from html.

I guess that under this scenario, I would have to get hold of the byte array for the download and manually create the file picker myself?
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.