Now it’s time to look at the WebLock component as another example of XPCOM components (since you’ll be creating it shortly). This is a book about Gecko, and about creating XPCOM components for Gecko- based applications. Though the emphasis is on the practical steps you take to. About. This is a step-by-step tutorial on creating, building and registering an XPCOM component on Linux and MS Windows.
|Published (Last):||22 August 2017|
|PDF File Size:||3.45 Mb|
|ePub File Size:||17.97 Mb|
|Price:||Free* [*Free Regsitration Required]|
It seems, that Alex Sirota is too busy with his job as that he could correct the example to a working version.
I tested alex’s complete code example. You agree to receive updates, alerts and promotions from CBS and that CBS may share information about you with our marketing partners so that they may contact you by email or otherwise about their products or services. Explore the capabilities of Mozilla’s XML proxy class. I used the same latest gecko 1.
I agree with the first comment, that the world needs such a compact tutorial on XPCOM components, but it needs a working one! If anyone is having problems, eg getting unresolved references than check this webpage http: Look up dependent glue in the table and use the settings there.
These three layers are required, and each layer requires certain methods as you can see in Listing A. In this article, you learned how to create, develop, and test an XPCOM component that can be used by Firefox as an extension of an application.
The example works for me under XP, ff 1. Please review our terms of service to complete your newsletter subscription.
I have compiled Successfully.
Creating XPCOM Components
I encountered an error while compiling compondnts the project: Typically, you wouldn’t modify anything in this header file. Does anyone have an idea what library could provide this function? In this article, all the instructions, environment variables, and command line will be in a Linux operating system.
Create and implement an XPCOM component for the Firefox browser
On the other hand the final nightly http: It provides a function to request the interfaces on a class. Thanks to Nigel McFarlane for this from hack 82 in O’reilly: Compknents you unpack this into a separate directory, you can use the -h on xpidl.
If you try HTML, you can make various improvements. I use Firefox 1.
The directory structure should look very similar to Listing 2. You can install gecko-sdk with the default option. Also me suggest the best version of Gecko-sdk with all the libs,idl and header files that suits my requirement and also where from where I can download since many versions are available. I haven’t tried it on linux. Download the Gecko SDK for your platform. The link to part 5 of the IBM dw article is broken, the correct link is: For the browser to benefit from the functions provide by an XPCOM component, the component must first be registered to the browser.