Extending Firefox and Thunderbird |
Written by Mike James | |||||||
Saturday, 20 June 2009 | |||||||
Page 1 of 6
Mozilla Firefox and Thunderbird are an open source browser and email client respectively. They offer an alternative to Internet Explorer and Outlook Express and, given that Microsoft has stated that no new versions of Outlook Express will be produced in the future, they are a combination that looks particularly attractive. They are both free to download and use and they automatically migrate any existing Internet Explorer and Outlook Express settings and data. From a programmer's point of view they have even more to offer. A standard layout engine "Gecko" is used in both applications and this allows you to customise and extend them. Firefox uses a subset of "Gecko" called Chrome. Once you understand the way that it works, it also provides a framework for building your own web or desktop applications - and it's all based on XML and JavaScript. Best of all is that it is all "platform" independent and will work in the same way with Windows. Linux or Mac. The great idea There are two major components to a Firefox extension: XUL, pronounced "zool", which defines the user interface and XPCOM, a JavaScript API that provides access to the internal components. Most accounts of how to get started building extensions focus almost exclusively on the XUL part of the team, perhaps because this is the more impressive. However, to get anything done you need to know about XPCOM and the library of components it provides access to. So here we will examine how both work. If you know how ASP .NET or WPF work it might help to compare XUL with HTML or XAML and XPCOM with the .NET Framework classes. |
|||||||
Last Updated ( Saturday, 27 June 2009 ) |