Re: Is possible to interacts Java and Firefox add-ons with JavaXPCOM or with another way?

Javier Pedemonte <[email protected]> Thu, 14 Jun 2007 16:24:50 -0500
Newsgroups gmane.comp.mozilla.devel.java
Message-ID <F-ednUF4WsKxL-zbnZ2dnUVZ_q-vnZ2d__2528.19989477775$1181856321$gmane$org@mozilla.org>
rafart wrote:
> I'm trying to open a firefox add-on and manipulate it with Java, for
> example: Open the Firebug add-on, get its results and generate a
> report with these results.

JavaXPCOM cannot do this.  Currently, you can only use JavaXPCOM to 
embed Mozilla (through XULRunner) in a Java application.

You might be able to do it in JavaScript, though.  But I'm not sure what 
interfaces there are to automate the opening of add-ons.  You can try 
asking in the mozilla.dev.embedding or mozilla.dev.apps.firefox newsgroups.

If you need to use Java, you can call Java from JavaScript using 
LiveConnect: 
http://developer.mozilla.org/en/docs/Java_in_Firefox_Extensions.


javier pedemonte