Re: Firefox extension xpi jar file MUST be in chrome directory.

Sailfish <[email protected]> Tue, 01 Mar 2005 22:14:27 -0800
Newsgroups gmane.comp.mozilla.devel.xpinstall
Organization Another Netscape Collabra Server User
Message-ID <[email protected]>
Peter Wilson wrote:
> This took a lot of finding out due to the complete lack of documentation.
> 
> When perfoming an extension install in the user profile.
> 
> 1. you do not need a install.js (it is ignored)
> 2. your jar file  MUST be stored in the xpi file with a chrome directory 
> path.
> Your xpi should look like:
> File            Path
> ----------------------------
> install.rdf
> <myprojectname>.jar   chrome/
> 
> Otherwise you get the following:
> 
> 1. Firefox will install your extension and say it will be installed when 
> Firefox restarts.
> 2. Your instal.log says the install was successful (but it is lying).
> 3. When you reload your extension is NOT fine it is marked to be 
> uninstalled on the next reload.
> 
> 4. Don't expect any debugging help from logComment, alert, or confirm = 
> they are all stubbed out.
> 
> Have a nice day - I just did.
> 
Here's a link that should help explain it all:

http://kb.mozillazine.org/Dev_:_Extensions

Also, here's a web forum where you might also find other interesting 
pieces of information regarding extensions:

http://forums.mozillazine.org/viewforum.php?f=19&sid=6c89509f24fb3af90b2a5b77c3611681

gl

-- 

Mozilla Tips: http://www.ufaq.org/ , http://ilias.ca/
Web page validation: http://validator.w3.org
About Mozilla: http://www.mozilla.org