I'm developing a web application that regulates the access to some data
stored as jar files. Each jar file contains two data file and a xul file,
which use the data within the same jar file.
In Firefox 2.x everything works fine when addressing the xul file with the
jar protocol, and the all directory structure (e.g.
jar:http//localhost/directory/file.jar!dir1/dir2/xulFile.xul ).
Specifically, when addressing a xul file in that way, I automatically get
the execution of the xul file.
Differently, upgrading to Firefox 3.5, when addressing the xul file in the
identical way I'm prompted with a window asking which application should be
used to open the xul files.
Anybody can suggest any hint from which I should start looking into? I
understand that it could be a sort of security settings, but I cannot find
any settings to solve this issues.
Thanks!
Dan
>Differently, upgrading to Firefox 3.5, when addressing the xul file in the identical way I'm prompted with a window asking which application should be used to open the xul files.
>
>
You're probably not serving the jar file with the correct MIME type;
Firefox 3.5 now checks this.
--
Warning: May contain traces of nuts.
Is checking the MIME type unique to FF? I never detected any such
problem with XulRunner from trunk.
I had tried also the MIME type you have just suggested, but the problem
remains. Firefox does recognize the jar file, and accesses the XUL file, but
then it doesn't know how to process it (but I don't have this problem trying
to access the same file exposes on another web site).
Since the jar file is retrieved and provided to the user browser by a Struts
Download action, I have set the option inline too, but this doesn't solve
the problem. Some other blogs suggest that it might be a configuration issue
with the browser. However, navigating the setting I can only find a the
Application tab in the window activated by Tools-->Option. In this tab - as
I understand - are shown all the association between the files and the
applications needed to use the. There is no button to add other types of
files.
Any suggestion or hint much appreciated!
Thanks,
Dan
On Tue, Nov 3, 2009 at 11:09 AM, Neil <ne...@parkwaycc.co.uk> wrote:
> Please don't reply off-list.
>
>
> Daniele Development-ML wrote:
>
> thanks Neil.
>> I'm currently using "application/x-jar", what should I use instead?
>>
>
> Looks like my guess was wrong; that's a supported MIME type
> (application/java-archive is the other supported type).
>
>Firefox does recognize the jar file, and accesses the XUL file, but then it doesn't know how to process it
>
So there's no problem with text or html files inside the jar file?
my code was:
response.setHeader("Content-disposition", "inline; filename=file.jar");
then I realized I had left the attachment part of the original content
disposition - which probably is not supposed to be there anyway.
Tried this:
response.setHeader("Content-disposition", "inline");
and I worked, fortunately.
Thanks,
Dan
> _______________________________________________
> dev-tech-xul mailing list
> dev-te...@lists.mozilla.org
> https://lists.mozilla.org/listinfo/dev-tech-xul
>