Re: Accessing Firefox programmatically

Michel Gutierrez <mig@NOSPAM_indigen.com>
Newsgroups gmane.comp.mozilla.devel.java
Message-ID <4458CDE5.4060704__18643.8294746496$1146670824$gmane$org@NOSPAM_indigen.com>
Jesper Sahner wrote:
> Instead of reinventing all the standard browser-functionality including 
> JavaScript in Java, I wonder if Firefox can be accessed programmatically 
> from outside using e.g. Java JNI? I guess it would be much more elegant 
> to access Firefox programmatically instead of emulating the same 
> functionality in Java.

An option would be to write a firefox chrome extension listening on a 
tcp port using nsIServerSocket. Then you have to setup your own protocol 
over this socket to request everything you need out of firefox from your 
java application.

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