Firefox Marketplace. Log In. QA. Localization. Using Mozilla code in other projects. Participating in the Mozilla project. If you're interested in helping to fix bugs and otherwise work on the code behind the Mozilla platform, this is the place to find the documentation that will point you in the right direction.
Document Tags and Contributors Contributors to this page:Sheppy, Centinel, openjck, jenzed, Benjamin Smedberg, Pettay, inma_610, Husylvan, thiagofalves, themky, matspal@gmail.com, phenix, Potappo, Johnatan. Creating OpenSearch plugins for Firefox. Firefox supports the OpenSearch description format for search plugins.
Plugins that use OpenSearch are compatible with Firefox, Internet Explorer, and Chrome. Because of this, they are the recommended format for use on the web. Firefox also supports additional features not included in OpenSearch, such as search suggestions and the SearchForm element. This article will focus on creating OpenSearch-compatible search plugins that support these additional Firefox-specific features. OpenSearch description files can be advertised as described in Autodiscovery of search plugins, and can be installed programmatically as described in Adding search engines from web pages. OpenSearch description fileEdit The XML file describing a search engine follows the basic template below. <OpenSearchDescription xmlns=" xmlns:moz=" engine full name and summary</Description><InputEncoding>UTF-8</InputEncoding><Image width="16" height="16" type="image/x-icon">data:image/x-icon;base64,AAABAAEAEBAAA ...
Themes. Themes are skins for different Mozilla applications.
They allow you to change the look and feel of the user interface and personalize it to your tastes. A theme can simply change the colors of the UI or it can change every piece of its appearance. The Theme documentation here is out of date, but we're hoping to get some help to update it soon. Document Tags and Contributors. Add-on Builder. The Add-on Builder was a web-based development environment that allowed developers to create add-ons using the SDK APIs, but without needing to use the cfx command line tool.
It was retired on April 1, 2014, and the "builder.addons.mozilla.org" domain now redirects to this page. If you have only used the SDK through the Builder, you already know most of what you need to know to develop using just the SDK. The high-level and low-level APIs used for Builder add-ons are exactly the same for Builder and SDK. Plugins. Plugins 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 are now a legacy technology. They are not available on most mobile devices. Mozilla encourages website developers to avoid using plugins wherever possible. Service Unavailable. Modify and extend Mozilla applications Add-ons add new functionality to Gecko-based applications such as Firefox, SeaMonkey, and Thunderbird.
There are two main types of add-on: Extensions add new features to the application, while Themes modify the application's user interface. Add-ons can greatly affect the behavior of the application that hosts them. We've developed a set of guidelines to help ensure that they provide a good experience to users. Developer Hub. Using geolocation. The geolocation API allows the user to provide their location to web applications if they so desire.
For privacy reasons, the user is asked for permission to report location information. The geolocation object The geolocation API is published through the navigator.geolocation object. If the object exists, geolocation services are available. You can test for the presence of geolocation thusly: if ("geolocation" in navigator) { } else { } Note: On Firefox 24 and older versions, "geolocation" in navigator always returned true even if the API was disabled. Detecting device orientation. This is an experimental technologyBecause this technology's specification has not stabilized, check the compatibility table for the proper prefixes to use in various browsers.
Also note that the syntax and behavior of an experimental technology is subject to change in future versions of browsers as the spec changes. Summary Increasingly, web-enabled devices are capable of determining their orientation; that is, they can report data indicating changes to their orientation with relation to the pull of gravity. In particular, hand-held devices such as mobile phones can use this information to automatically rotate the display to remain upright, presenting a wide-screen view of the web content when the device is rotated so that its width is greater than its height.
There are two JavaScript events that handle orientation information. The second event is the DeviceMotionEvent, which is sent when a change in acceleration was added. Processing orientation events Orientation values explained See also. Mobile. Firefox OS Firefox OS is an open source mobile operating system which uses Linux and Mozilla's Gecko engine to run a user interface and set of applications written entirely in HTML, CSS and JavaScript.
Read about how to install Firefox OS and how to develop apps for it. Firefox for Android Firefox for Android is Mozilla's mobile web browser for Android devices. It's recently been rewritten to use Android's native UI, making it faster, leaner and more responsive.