Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Opening XUL files zipped in a jar file

2 views
Skip to first unread message

Daniele Development-ML

unread,
Oct 30, 2009, 12:14:25 PM10/30/09
to dev-te...@lists.mozilla.org
Hello everybody,

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

Neil

unread,
Oct 30, 2009, 1:50:50 PM10/30/09
to
Daniele Development-ML wrote:

>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.

Georg Maaß

unread,
Nov 1, 2009, 2:21:37 PM11/1/09
to
Neil wrote:
> You're probably not serving the jar file with the correct MIME type;
> Firefox 3.5 now checks this.

Is checking the MIME type unique to FF? I never detected any such
problem with XulRunner from trunk.

Daniele Development-ML

unread,
Nov 3, 2009, 7:21:20 AM11/3/09
to dev-te...@lists.mozilla.org
Sorry - there was a conf problem with my gmail.

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).
>

Neil

unread,
Nov 3, 2009, 7:46:52 PM11/3/09
to
Daniele Development-ML wrote:

>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?

Daniele Development-ML

unread,
Nov 10, 2009, 1:03:30 PM11/10/09
to dev-te...@lists.mozilla.org
Was a naive mistake:

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
>

0 new messages