Confirmed users
130
edits
m (→Packaging) |
Wmccloskey (talk | contribs) (Updated packaging) |
||
| Line 9: | Line 9: | ||
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. | ||
== Testing == | |||
You can test an extension as follows. (Note: a good example to start with is the [https://developer.chrome.com/extensions/examples/extensions/gmail.zip Gmail checker extension].) Edit the manifest.json file and add the following (replacing the add-on ID with something unique): | |||
<blockquote><pre> | |||
"applications": { | |||
"gecko": { | |||
"id": "my-addon@foopy.net", | |||
} | |||
} | |||
</pre></blockquote> | |||
Now zip up the extension and give it a ".xpi" suffix. Load the add-on into Firefox as you normally would (File > Open should work). | |||
== Packaging == | == Packaging == | ||
In the future, we're planning to use the .zip file extension. We also would like to make the ID optional. | |||
In the future, we're planning to use the .zip file extension. | |||
See https://developer.chrome.com/extensions/manifest for a complete list of manifest directives. The ones we currently support are below. | See https://developer.chrome.com/extensions/manifest for a complete list of manifest directives. The ones we currently support are below. | ||