- XPConnect
-
XPConnect (Cross Platform Connect) is a technology which enables simple interoperation between XPCOM and JavaScript.
Object connection
XPConnect allows JavaScript objects to transparently access and manipulate XPCOM objects. It also enables JavaScript objects to present XPCOM compliant interfaces to be called by XPCOM objects. A main goal is that objects communicating from either side of an XPCOM style interface should not generally need to know or care about the implementation language of the object on the other side of the interface.
XPConnect's primary reason for existence is to replace handwritten code used in places where native code needs to interact with JavaScript code. An example is the DOM module.
Security
Full privileges are only granted by default to chrome scripts, i.e. scripts that are part of the application or of an extension. For remote HTML/XHTML/XUL documents, most XPCOM objects are not accessible by the scripts as they have limited privileges due to security reasons. Even if they are accessible (e.g. the XMLHttpRequest object), the usual security restrictions can also be found (e.g. cannot open URLs of other domains).
External links
Mozilla Project Mozilla LabsMozilla ResearchBoot 2 Gecko · RustCamino · Firefox (2 · 3 · 3.5 · 3.6 · 4 · 5 · 6 · 7 · 8 · 9 · 10 · 11 · 12 · Mobile) · SeaMonkey
more- Origin and lineage: Mozilla Application Suite · Netscape Navigator · Netscape Communicator · Netscape Communications · Beonex Communicator
- Forks: BurningDog · Flock · Gnuzilla · Iceape · IceCat · Icedove · Iceowl · Miro · Netscape 9 · Portable Edition · Songbird · Swiftfox · Swiftweasel · TenFourFox · XeroBank
- Framework: add-on · Gecko · Necko · XBL · XPCOM · XPConnect · XPInstall · XUL · XULRunner
- Componentry: Application Object Model · Composer · NSPR · NSS · Rhino · SpiderMonkey · Tamarin · Venkman
- Project: Personas, Snowl, Test Pilot — Chromatabs, Geode, Joey, Operator, The Coop
- Discontinued: Calendar Project · Grendel · Minimo
Organization Former Mozilla Organization · Mozilla Foundation (Subsidiary: Mozilla Corporation · Mozilla Messaging · Mozilla Online)Official affiliateCommunity See also Categories:- Software stubs
- Mozilla
Wikimedia Foundation. 2010.