Please note, this is a STATIC archive of website developer.mozilla.org from 03 Nov 2016, cach3.com does not collect or store any user information, there is no "phishing" involved.

Revision 912269 of WebExtensions

  • Slug da revisão: Mozilla/Add-ons/WebExtensions
  • Título da revisão: WebExtensions
  • ID da revisão: 912269
  • Criado:
  • Criador: wbamberg
  • É a revisão atual? Não
  • Comentar

Conteúdo da revisão

WebExtensions is a new extension API for Firefox.

It's developed for cross-browser compatibility: to a large extent the API is compatible with the extension API supported by Google Chrome and Opera. Extensions written for these browsers will in most cases run in Firefox with just a few changes. The API is also fully compatible with multiprocess Firefox.

We intend to deprecate XUL and XPCOM-based add-ons, and encourage add-on developers to use the WebExtensions API for new development. We're also intending to extend the APIs to support the needs of add-on developers, so if you have ideas, we'd love to hear them.


Getting started

Prerequisites
What you need to get started.
Walkthrough
An example walkthrough of a simple WebExtension.
Porting from Google Chrome
What changes you'll need to make if you're porting an existing Chrome extension.
Anatomy of a WebExtension
An overview of the main pieces of a WebExtension: manifest.json and other files.
Packaging
How to package a WebExtension and install it in Firefox.

Reference

WebExtension APIs
Reference docs for all the APIs supported by Firefox.
manifest.json
Reference for manifest.json.

Fonte da revisão

<p>WebExtensions is a new extension API for Firefox.</p>

<p>It's developed for cross-browser compatibility: to a large extent the API is compatible with the <a href="https://developer.chrome.com/extensions">extension API</a> supported by Google Chrome and Opera. Extensions written for these browsers will in most cases run in Firefox with just a few changes. The API is also fully compatible with <a href="/en-US/docs/Mozilla/Firefox/Multiprocess_Firefox">multiprocess Firefox</a>.</p>

<p>We intend to deprecate XUL and XPCOM-based add-ons, and encourage add-on developers to use the WebExtensions API for new development. We're also intending to extend the APIs to support the needs of add-on developers, so if you have ideas, <a href="https://webextensions.uservoice.com/forums/315663-webextension-api-ideas">we'd love to hear them</a>.</p>

<hr />
<h3 id="Getting_started">Getting started</h3>

<div class="column-container">
<div class="column-half">
<dl>
 <dt><a href="/en-US/docs/Mozilla/Add-ons/WebExtensions/Prerequisites">Prerequisites</a></dt>
 <dd>What you need to get started.</dd>
 <dt><a href="/en-US/docs/Mozilla/Add-ons/WebExtensions/Walkthrough">Walkthrough</a></dt>
 <dd>An example walkthrough of a simple WebExtension.</dd>
 <dt>Porting from Google Chrome</dt>
 <dd>What changes you'll need to make if you're porting an existing Chrome extension.</dd>
</dl>
</div>

<div class="column-half">
<dl>
 <dt><a href="/en-US/docs/Mozilla/Add-ons/WebExtensions/Anatomy_of_a_WebExtension">Anatomy of a WebExtension</a></dt>
 <dd>An overview of the main pieces of a WebExtension: manifest.json and other files.</dd>
 <dt>Packaging</dt>
 <dd>How to package a WebExtension and install it in Firefox.</dd>
</dl>
</div>
</div>

<hr />
<h3 id="Reference">Reference</h3>

<div class="column-container">
<div class="column-half">
<dl>
 <dt>WebExtension APIs</dt>
 <dd>Reference docs for all the APIs supported by Firefox.</dd>
</dl>
</div>

<div class="column-half">
<dl>
 <dt>manifest.json</dt>
 <dd>Reference for manifest.json.</dd>
</dl>
</div>
</div>
Reverter para esta revisão