XPConnect

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



Wikimedia Foundation. 2010.

Игры ⚽ Поможем написать курсовую

Look at other dictionaries:

  • NPAPI — Netscape Plugin Application Programming Interface (NPAPI) is a cross platform plugin architecture used by many web browsers. It was first developed for the Netscape family of browsers starting with Netscape Navigator 2.0 but was subsequently… …   Wikipedia

  • Netscape Plugin Application Programming Interface — (NPAPI) is a cross platform plugin architecture used by many web browsers.It was first developed for the Netscape family of browsers starting with Netscape Navigator 2.0 but has subsequently been implemented in other browsers including Mozilla… …   Wikipedia

  • XPCOM — Free software portal XPCOM (Cross Platform Component Object Model) is a cross platform component model from Mozilla. It is similar to Microsoft COM and CORBA. It has multiple language bindings and IDL descriptions so programmers can p …   Wikipedia

  • Mozilla application framework — Free software portal The Mozilla application framework is a collection of cross platform software components that make up the Mozilla applications. It was originally known as XPFE, an abbreviation of cross platform front end. It was also known as …   Wikipedia

  • Cross Platform Component Object Model — (XPCOM) ist ein plattformunabhängiges Komponentenmodell von Mozilla. Es funktioniert ähnlich wie CORBA oder COM mit Hilfe von Schnittstellen. Es verfügt über verschiedene Sprachanbindungen und Schnittstellenbeschreibungen, so dass Programmierer… …   Deutsch Wikipedia

  • XPCOM — Cross Platform Component Object Model (XPCOM) ist ein plattformunabhängiges Komponentenmodell von Mozilla. Es funktioniert ähnlich wie CORBA oder COM mit Hilfe von Schnittstellen. Es verfügt über verschiedene Sprachanbindungen und… …   Deutsch Wikipedia

  • Add-on (Mozilla) — For Mozilla s official add ons website, see Mozilla Add ons. Featured Firefox addons from the official page Add ons are installable enhancements to the Mozilla Foundation s projects, and projects based on them. Add ons allow the user to add or… …   Wikipedia

  • Mozilla application framework — У этого термина существуют и другие значения, см. Mozilla. Mozilla Application Framework  фреймворк, набор программных компонентов, предназначенный для сборки и разработки программ, созданный в рамках проекта Mozilla Foundation и… …   Википедия

  • Plate-forme Mozilla — Pour les articles homonymes, voir Plate forme. La plate forme Mozilla (XPFE ou XPToolkit ou Mozilla application framework) est l’ensemble des techniques Mozilla. Cela inclut le moteur de rendu Gecko, XUL, XHTML, SVG, le moteur JavaScript, le… …   Wikipédia en Français

  • XPCOM — (англ. Cross Platform Component Object Model, «кросплатформенная объектная модель компонентов»)  кросплатформенная компонентно ориентированная модель разработки ПО от Mozilla. Она схожа с CORBA и Microsoft COM. XPCOM позволяет… …   Википедия

Share the article and excerpts

Direct link
Do a right-click on the link above
and select “Copy Link”