encyclopegia.org

XPCOM

Cross Platform Component Object Model (XPCOM) is a cross-platform component model from Mozilla. It is similar to Component Object Model (COM), Common Object Request Broker Architecture (CORBA) and system object model (SOM). It features multiple language bindings and interface description language (IDL) descriptions, which allow programmers to plug their custom functions into the framework and connect them with other components. The most notable use of XPCOM is within the Firefox web browser, where many internal components interact through XPCOM interfaces. Furthermore, Firefox used to allow add-ons extensive XPCOM access, but this was removed in 2017 and replaced with the less-permissive WebExtensions API. Two forks of Firefox still support XPCOM add-on capability: Pale Moon and Basilisk.

Cross Platform Component Object Model (XPCOM) is a cross-platform component model from Mozilla. It is similar to Component Object Model (COM), Common Object Request Broker Architecture (CORBA) and system object model (SOM). It features multiple language bindings and interface description language (IDL) descriptions, which allow programmers to plug their custom functions into the framework and connect them with other components. The most notable use of XPCOM is within the Firefox web browser, where many internal components interact through XPCOM interfaces. Furthermore, Firefox used to allow add-ons extensive XPCOM access, but this was removed in 2017 and replaced with the less-permissive WebExtensions API. Two forks of Firefox still support XPCOM add-on capability: Pale Moon and Basilisk. ==Model== 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: Component management File abstraction Object message passing Memory management This component object model makes virtually all of the functionality of Gecko available as a series of components, or reusable cross-platform libraries, that can be accessed from the web browser or scripted from any Mozilla application. Applications that must access the various Mozilla XPCOM libraries (networking, security, DOM, etc.) use a special layer of XPCOM called XPConnect, which reflects the library interfaces into JavaScript, or other languages. XPConnect glues the front end to the C++, C, or Rust programming language based components in XPCOM, and it can be extended to include scripting support for other languages: PyXPCOM already offers support for Python. wxWidgets provide support for Perl, and there are efforts underway to add Common Language Infrastructure (CLI) and Ruby language support for XPConnect. For developers, XPCOM allows writing components in C++, C, JavaScript, Python, or other languages for which special bindings have been created, and compile and run those components on dozens of different platforms, including these and others where Mozilla is supported. 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. ==Past overuse== XPCOM adds a lot of code for marshalling objects, and in the Netscape era XPCOM was overused for internal interfaces where it wasn't truly necessary, resulting in software bloat. This was a key reason why in 2001 Apple forked KHTML, not Gecko, to create the WebKit engine for its Safari browser. Mozilla has since cleaned up some of the XPCOM bloat. By 2008, this combined with other efforts resulted in big performance improvements for Gecko. ==References== ==External links== XPCOM API Reference XPCOM Documentation A Simple XPCOM Tutorial

References

  1. Firefox 57 release notes Wikipedia revision 1322900078, retrieved 2026-11-18 · retrieved 2026-11-17 · rev 1322900078
    Cite this reference

    MLA "Firefox 57 release notes Wikipedia revision 1322900078, retrieved 2026-11-18." 2026-11-17. https://www.mozilla.org/en-US/firefox/57.0/releasenotes/. Accessed 24 November 2026.

    Chicago "Firefox 57 release notes Wikipedia revision 1322900078, retrieved 2026-11-18." 2026-11-17. https://www.mozilla.org/en-US/firefox/57.0/releasenotes/.

    APA encyclopegia.org. (2026). Firefox 57 release notes Wikipedia revision 1322900078, retrieved 2026-11-18. Retrieved November 24, 2026, from https://www.mozilla.org/en-US/firefox/57.0/releasenotes/

  2. Why Mozilla is committed to Gecko as WebKit popularity grows · retrieved 2017-02-15 · rev 1322900078
    Cite this reference

    MLA "Why Mozilla is committed to Gecko as WebKit popularity grows." Ryan Paul (2008-09-09). 2017-02-15. https://arstechnica.com/information-technology/2008/09/mozilla-committed-to-gecko/. Accessed 24 November 2026.

    Chicago "Why Mozilla is committed to Gecko as WebKit popularity grows." Ryan Paul (2008-09-09). 2017-02-15. https://arstechnica.com/information-technology/2008/09/mozilla-committed-to-gecko/.

    APA Ryan Paul (2008-09-09). (2017). Why Mozilla is committed to Gecko as WebKit popularity grows. Retrieved November 24, 2026, from https://arstechnica.com/information-technology/2008/09/mozilla-committed-to-gecko/

  3. The Future of Developing Firefox Add-ons · retrieved 2018-04-01 · rev 1322900078
    Cite this reference

    MLA "The Future of Developing Firefox Add-ons." Kev Needham (2015-08-21). 2018-04-01. https://blog.mozilla.org/addons/2015/08/21/the-future-of-developing-firefox-add-ons/. Accessed 24 November 2026.

    Chicago "The Future of Developing Firefox Add-ons." Kev Needham (2015-08-21). 2018-04-01. https://blog.mozilla.org/addons/2015/08/21/the-future-of-developing-firefox-add-ons/.

    APA Kev Needham (2015-08-21). (2018). The Future of Developing Firefox Add-ons. Retrieved November 24, 2026, from https://blog.mozilla.org/addons/2015/08/21/the-future-of-developing-firefox-add-ons/

  4. Pale Moon future roadmap · retrieved 2018-04-01 · rev 1322900078
    Cite this reference

    MLA "Pale Moon future roadmap." 2018-04-01. https://www.palemoon.org/roadmap.shtml. Accessed 24 November 2026.

    Chicago "Pale Moon future roadmap." 2018-04-01. https://www.palemoon.org/roadmap.shtml.

    APA encyclopegia.org. (2018). Pale Moon future roadmap. Retrieved November 24, 2026, from https://www.palemoon.org/roadmap.shtml

  5. Pale Moon team releases first version of Basilisk browser · retrieved 2018-04-01 · rev 1322900078
    Cite this reference

    MLA "Pale Moon team releases first version of Basilisk browser." 2018-04-01. https://www.ghacks.net/2017/11/17/pale-moon-team-releases-first-version-of-basilisk-browser/. Accessed 24 November 2026.

    Chicago "Pale Moon team releases first version of Basilisk browser." 2018-04-01. https://www.ghacks.net/2017/11/17/pale-moon-team-releases-first-version-of-basilisk-browser/.

    APA encyclopegia.org. (2018). Pale Moon team releases first version of Basilisk browser. Retrieved November 24, 2026, from https://www.ghacks.net/2017/11/17/pale-moon-team-releases-first-version-of-basilisk-browser/

  6. PyXPCOM · retrieved 2018-01-01 · rev 1322900078
    Cite this reference

    MLA "PyXPCOM." 2018-01-01. https://web.archive.org/web/20201020073948/https://developer.mozilla.org/en-US/docs/Mozilla/Tech/XPCOM/Language_bindings/PyXPCOM. Accessed 24 November 2026.

    Chicago "PyXPCOM." 2018-01-01. https://web.archive.org/web/20201020073948/https://developer.mozilla.org/en-US/docs/Mozilla/Tech/XPCOM/Language_bindings/PyXPCOM.

    APA encyclopegia.org. (2018). PyXPCOM. Retrieved November 24, 2026, from https://web.archive.org/web/20201020073948/https://developer.mozilla.org/en-US/docs/Mozilla/Tech/XPCOM/Language_bindings/PyXPCOM

  7. Perl Based Cross Platforms Developments Wikipedia revision 1322900078, retrieved 2026-11-18 · retrieved 2026-11-17 · rev 1322900078
    Cite this reference

    MLA "Perl Based Cross Platforms Developments Wikipedia revision 1322900078, retrieved 2026-11-18." 2026-11-17. https://web.archive.org/web/20240402042937/https://gravitechdreams.com/blog/category/desktop-application-development-a-guide-to-powerful-cross-platform-options/. Accessed 24 November 2026.

    Chicago "Perl Based Cross Platforms Developments Wikipedia revision 1322900078, retrieved 2026-11-18." 2026-11-17. https://web.archive.org/web/20240402042937/https://gravitechdreams.com/blog/category/desktop-application-development-a-guide-to-powerful-cross-platform-options/.

    APA encyclopegia.org. (2026). Perl Based Cross Platforms Developments Wikipedia revision 1322900078, retrieved 2026-11-18. Retrieved November 24, 2026, from https://web.archive.org/web/20240402042937/https://gravitechdreams.com/blog/category/desktop-application-development-a-guide-to-powerful-cross-platform-options/

  8. Ars Technica sits down with Scott Collins from Mozilla.org · retrieved 2017-02-15 · rev 1322900078
    Cite this reference

    MLA "Ars Technica sits down with Scott Collins from Mozilla.org." Jorge O. 2017-02-15. https://arstechnica.com/information-technology/2004/06/collins-interview/2/. Accessed 24 November 2026.

    Chicago "Ars Technica sits down with Scott Collins from Mozilla.org." Jorge O. 2017-02-15. https://arstechnica.com/information-technology/2004/06/collins-interview/2/.

    APA Jorge O. (2017). Ars Technica sits down with Scott Collins from Mozilla.org. Retrieved November 24, 2026, from https://arstechnica.com/information-technology/2004/06/collins-interview/2/

  9. Apple snub stings Mozilla · retrieved 2017-02-15 · rev 1322900078
    Cite this reference

    MLA "Apple snub stings Mozilla." Paul Festa (2003-01-14). 2017-02-15. https://en.wikipedia.org/wiki/Paul_Festa. Accessed 24 November 2026.

    Chicago "Apple snub stings Mozilla." Paul Festa (2003-01-14). 2017-02-15. https://en.wikipedia.org/wiki/Paul_Festa.

    APA Paul Festa (2003-01-14). (2017). Apple snub stings Mozilla. Retrieved November 24, 2026, from https://en.wikipedia.org/wiki/Paul_Festa

  10. Gecko:DeCOMtamination · retrieved 2026-11-17 · rev 1322900078
    Cite this reference

    MLA "Gecko:DeCOMtamination." 2026-11-17. https://wiki.mozilla.org/Gecko:DeCOMtamination. Accessed 24 November 2026.

    Chicago "Gecko:DeCOMtamination." 2026-11-17. https://wiki.mozilla.org/Gecko:DeCOMtamination.

    APA encyclopegia.org. (2026). Gecko:DeCOMtamination. Retrieved November 24, 2026, from https://wiki.mozilla.org/Gecko:DeCOMtamination

Cite this article

MLA

"XPCOM." encyclopegia.org, 2025, https://encyclopegia.org/wiki/xpcom. Accessed 24 November 2026.

Chicago

"XPCOM." encyclopegia.org. Accessed November 24, 2026. https://encyclopegia.org/wiki/xpcom.

APA

encyclopegia.org. (2025). XPCOM. Retrieved November 24, 2026, from https://encyclopegia.org/wiki/xpcom

Accessed November 24, 2026 · CC BY-SA 4.0 · citation page · JSON

Related articles

Agonglo

enwiki · references available

Jean-Pierre Rampal

enwiki · references available

Adandozan

enwiki · references available

Ibero-Caucasian languages

enwiki · references available

Ghezo

enwiki · references available

Glele

enwiki · references available

Northwest Caucasian languages

enwiki · references available

Annegret Richter

enwiki · references available

Nonprofit organization

enwiki · references available

Electron energy loss spectroscopy

enwiki · references available

Alexander Alekhine

enwiki · references available

Annual Customs of Dahomey

enwiki · references available
CC BY-SA 4.0 · share-alike · https://en.wikipedia.org/w/index.php?oldid=1322900078 · 0.5 · snapshot enwiki-001322900078

Cite · JSON · Search

Related services and records

Services

  • Estate — measured countries, lanes and facts
  • Intel — live corroborated events
  • Legal — statutes, cases and citations
  • Encyclopedia — articles with inline sources
  • Space — launches, satellites and orbits
  • Search — federated search and reports
  • Pass — passport account and SSO
  • Corpora — read-only corpus origins
  • e01 — self-hosted corpora and tools

Text and metadata only; each target carries its own sources. Missing data is published as no-data, never estimated.