Labs/Jetpack/API/jetpack

From MozillaWiki
< Labs‎ | Jetpack‎ | API
Jump to: navigation, search

The jetpack Namespace

The jetpack namespace is available to all Jetpack Features, and is the main point of contact for Features with the rest of Firefox. The API is intended as a lightweight backwards-compatible facade to the underlying Mozilla platform, which means that if you write a Feature using the Jetpack library, you shouldn't have to change your code as Firefox continues to evolve.

For now, it has the following properties:

  • tabs provides access to all open tabs (irrespective of window).
  • statusBar lets you add or modify to Firefox's status bar at the bottom of Firefox browser windows.
  • lib gives access to small libraries for the web, providing encapsulated and easy-to-use ways of accessing services like Twitter, Flickr, Delicious, and so forth. Eventually you'll be able to import libraries from anywhere, but the default ones will be code reviewed by Mozilla.