Pantelis Panayiotou wrote:
> Hi, I posted this message in netscape.public.mozilla.general and Gerv > (below) suggested to post it here too. > > Basically what I want to make is an extension to Mozilla that will add a few > buttons to the browser interface (I know I can do this with XUL), but also > to wake up when a user visits certain pages (that contain pre-defined HTML > tags), present the user with a wizard of some kind to get some info from > him, and then communicate with a few remote servers, via both sockets and > HTTP. Look in to some of the embedding interfaces, nsIWebBrowser. You can register a XPCOM object which is a nsIWebProgressListener and come to know about every url loaded in the browser. You can then wake up when one of your urls are loaded and kick off other stuff. I think there is also a mechanism through DDE to know about the current url or url to be loaded. It is probably unimplemented or buggy. Search in bugzilla for such bugs in "browser General" category. I also suggest posting this in n.p.m.embedding and n.p.m.xpfe. > > I just want to know if these things are possible, especially the "wake up" > part. I'm also looking for places to start reading. I haven't been able to > find full documentation of the components that come with Mozilla, at the > mozilla.org website. Where should I look? > > TIA, Pantelis > > >>A company I am cooperating with wants to create a browser extension that >>will be part of a B2B system that will be used by end-users throughout >>Europe. The extension must be able to: >>- Install itself so that it will be loaded whenever the user's web browser >>starts. >>- Add buttons/menus/windows to the user's web browser interface. >>- Intercept any web page the user loads and search its contents for data. >>- Open sockets, HTTP/HTTPS connections, files, etc. >> >>They're going to do it on MSIE using their browser helper objects (BHO) >>technology. My question is: can this be done also for Netscape 6.x and >>other Mozilla-based browsers using XUL and XPCom? >> > > Yes, definitely. > > >>I'm a bit confused with >>the documentation at mozilla.org and I'm just looking for pointers to more >>documentation etc. >> > > Your first port of call should probably be the XUL and XPCOM newsgroups. > > >>Also, are there any legal problems, since Mozilla is >>open-source and this application will be closed-source? >> > > You need to read the license for the full info, but no - if you use the > code under MPL terms, you have to publish changes you make to Mozilla's > files, but any code you put in new files of your own creation you can > keep closed-source if you wish. > > Gerv > > > > > >
