xpi.Īlternatively, you can copy the XPCOM which is a DLL file to “components” folder of existing Mozilla Firefox installation and then delete the “ Compreg.dat” file from “ C:\Documents and Settings\\application Data\Mozilla\Firefox\Profiles\" and restart Firefox, Firefox will register the new XPCOM DLL. Firefox will install this as a new protocol.xpi file is nothing but a. Just download the file “ findprotocol.xpi” and open it with Mozilla Firefox. When this protocol is installed in Mozilla Firefox, it can be called by typing The sample for this article builds will be “find:” protocol which will use the user's default search engine to initiate a search, same as the “x-search:” protocol which Doron Rosenberg created in JavaScript. One other place you can find implementation of protocol in C is in Mozilla’s site and it is a little bit complex and less documented. The intension of this article is to give you a very simple sample of custom protocol written in C when ever you are in hurry to create a custom protocol for Mozilla Firefox and you can reuse most of the code and can concentrate on your logic about the functionality of your protocol rather than searching here and there about the basic framework of a Mozilla protocol. In this article we’ll use C to build the XPCOM for the protocol. I’ve found a very good article written by Doron Rosenberg which tells you how to build a new protocol for Mozilla by using JavaScript. You can use JavaScript or C to implement XPCOM. XPCOM is very similar to MS COM (and in this article basics of the XPCOM will not be covered, you can find so many good articles and online books on XPCOM). To create a new protocol, you’ll need to implement an XPCOM component. It is sometime required to make a custom protocol for your project which will be plugged with the existing Firefox installation. Mozilla Firefox supports the generic web protocols, such as HTTP and FTP and it also support protocols like Chrome of its own. This article is to show you how to create a new protocol for Mozilla Firefox browser.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |