Re: FilePicker for non-chrome URLs?

Craig McDaniel <[email protected]>
Newsgroups gmane.comp.mozilla.devel.xpfe
Message-ID <[email protected]>
On Friday, February 22, 2013 2:47:01 PM UTC-5, 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?

I finally had the time to work up a test app and it almost worked. Apparently the browser download component is what I needed, not the file picker. However, it then popped up an error message about the DTD for the component. Turns out it needed brand.dtd and brand.properties files. https://developer.mozilla.org/en-US/docs/XULRunner_tips#Branding
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.