Implementing XPCOM components in JavaScriptFrom MozillaZine Knowledge BaseAbout XPCOMMozilla applications are built from a collection of XPCOM (Cross-platform Component Object Model) objects. They are used to perform certain tasks or to get specific functionality. For example, there is a directory service component that can be used to access files on your file system. Components can be constructed using several programming languages, including: javascript, c++, and python. Mozilla then uses "interfaces" to describe what a component can do. The most basic interface nsISupports give components a way to expose what interfaces they implement.
|
![]() |