WebExtensions: Difference between revisions

Jump to navigation Jump to search
packaging
m (Wmccloskey moved page Browser Extensions to WebExtensions: Change the name of the technology)
(packaging)
Line 10: Line 10:
We hope to ship a preliminary version of this API in Firefox 42.
We hope to ship a preliminary version of this API in Firefox 42.


For the time being, extensions will still be packaged as .xpi files. The .xpi file will contain the same files as the Chrome extension, including manifest.json. It will also include bootstrap.js and install.rdf files that allow it to be loaded into Firefox. We are considering adopting Opera's .nex file format for extensions.
== Packaging ==


== List of supported manifest.json directives ==
We're planning to use the .zip file extension. All of the data currently in install.rdf will be moved to the manifest.json file. Will will not use install.rdf or bootstrap.js. Extensions will be signed using JAR signing (the same as we do for existing Firefox add-ons).


See https://developer.chrome.com/extensions/manifest for a complete list.
See https://developer.chrome.com/extensions/manifest for a complete list of manifest directives. The ones we currently support are below.


* name
* name
Line 25: Line 25:
* browser_action
* browser_action
* default_locale
* default_locale
In addition, we plan to add the following section:
<blockquote><pre>
"applications": {
  "gecko": {
    "id": "{the-addon-id}",
    "strict_min_version": "40.0.0",
    "strict_max_version": "50.*"
    "update_url": "https://foo/bar"
  }
}
</pre></blockquote>
Both versions will be Gecko rapid release versions. The update URL points to an [https://developer.mozilla.org/en-US/docs/Extension_Versioning,_Update_and_Compatibility#Update_RDF_Format update manifest]. We hope to make all of these properties optional. The id would have to be generated fresh either upon local installation or when uploaded to addons.mozilla.org or Marketplace.


== List of supported APIs ==
== List of supported APIs ==
Confirmed users
130

edits

Navigation menu