Cross Platform Component Object Model (XPCOM) is a cross-platform component model from Mozilla. It is similar to Microsoft Component Object Model (COM) and Common Object Request Broker Architecture (CORBA). It features multiple language bindings and interface description language (IDL) descriptions; thus programmers can plug their custom functions into the framework and connect it with other components.
In August 2015, Mozilla announced that the use of XPCOM for creating Firefox add-ons would be deprecated in the future in favour of WebExtensions. Pale Moon, a fork of Firefox, will continue to support XPCOM indefinitely.
XPCOM is one of the main things making the Mozilla application environment an actual framework. It is a development environment that provides the following features for the cross-platform software developer:
The flexibility to reuse the XPCOM components from the Gecko library and develop new components that run on different platforms facilitates rapid application development and results in an application that is more productive and easier to maintain. The networking library, for example, is a set of XPCOM components that can be accessed and used by any Mozilla application. File I/O, security, password management, and profiles are also separate XPCOM components that programmers can use in their own application development.
XPCOM adds a lot of code for marshalling objects between different usage contexts (e.g. different languages). This leads to code bloat in XPCOM based systems. This was one of the reasons why Apple forked KHTML to create the WebKit engine (which is now used in several web browsers including Safari) over the XPCOM-based Gecko rendering engine for their web browser.
The Gecko developers are currently trying to reduce superfluous uses of XPCOM in the Gecko layout engine. This process is commonly referred to as deCOMtamination within Mozilla.
- XULRunner – XULRunner is a runtime that can be used to bootstrap multiple XUL + XPCOM applications that are as rich as Firefox and Thunderbird.
- Comparison with COM, GObject, SOM, Objective-C, Windows Runtime
- Kev Needham (2015-08-21). "The Future of Developing Firefox Add-ons". blog.mozilla.org. Retrieved 2015-09-07.
- "Pale Moon future roadmap". Pale Moon. 2016-05-09. Retrieved 2016-06-08.
- module ownership governance system
- Perl XPCOM project
- Jorge O. Castro (June 15, 2004). "Ars Technica sits down with Scott Collins from Mozilla.org". Ars Technica.
- Ryan Paul (September 9, 2008). "Why Mozilla is committed to Gecko as WebKit popularity grows". Ars Technica.
|Look up xpcom in Wiktionary, the free dictionary.|