Plugins
Table of Contents
- Tags
- Files
Plugins
(or plug-ins) are shared libraries that users can install to display content that the application itself can't display natively. For example, the Adobe Reader plugin lets the user open PDF files directly inside the browser, and the QuickTime and RealPlayer plugins are used to play special format videos in a web page.
Plugins can be useful when building an application using the Mozilla framework. For example
ActiveState Komodo
uses plugins to embed the Scintilla editor
in its XUL-based UI.
Plugins are written using
NPAPI, the cross-browser API for plugins. The main source of documentation for NPAPI is the
Gecko Plugin API Reference. To make your plugin scriptable from web pages, use
npruntime. The older
XPCOM- and
LiveConnect-based APIs for plugins should not be used. The technologies themselves continue to be used, just not for plugins.
Plugins can be written completely from scratch using C APIs (usually in C or C++) or they may be built on a plugin framework such as
Firebreath,
JUCE, or
QtBrowserPlugin. There are also some code generation tools that may be helpful. More information about these tools can be found on the External Resources
page.
Plugins are different from
extensions, which modify or enhance the functionality of the browser itself. Plugins are also different from
search plugins, which plug additional search engines in the search bar.
Documentation
|
Community
Related Topics |
Categories
Interwiki Language Links

Mozilla Developer Network