Labs/Jetpack/JCP

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

What is a Jetpack Capability Proposal?

Capabilities are the underlying way of exposing functionality in Jetpack. This can be in the form of less intensive, single methods such as exposure of the setTimeout JavaScript method, or slightly more involved items such as exposing the Mozilla platform's XHR implementation and functionality to Jetpack.

What does a Jetpack Capability Proposal consist of?

When adding a JCP to the wiki, please include a description of the general functionality the capability exposes. Where possible, break down the capability into more granular sub-methods that are required for, or represent additions to, the capability as a whole. Ideally the capability itself should be linked to a corresponding Bugzilla ticket, with any granular sub-methods within the capability having their own Bugzilla tickets that are marked as "Depends On" and pointing to the capability's general ticket by its ID number. You can reference the first capability on the list below for an example of what a complex, fully detailed JCP looks like.

JCP List


XHR - bug ticket
  • Description: The XHR capability exposes to Jetpack the methods and functionality of the browser's native XHR object
  • Sub-methods:
    • Request
      • open() method
      • setRequestHeader() method
      • send() method
      • abort() method
    • Response
      • status attribute
      • statusText attribute
      • getResponseHeader() method
      • getAllResponseHeaders() method
      • responseText attribute
      • responseXML attribute