Lokasi ngalangkungan proxy:   [ UP ]  
[Ngawartoskeun bug]   [Panyetelan cookie]                
Skip to content

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

0 watching

Forks

 
 

Latest commit

 

History

222 Commits

Folders and files

Repository files navigation

Supporting Add-On Developers

The goal of this repository is to provide useful information, code snippets, examples, scripts, APIs and tools to add-on developers in order to better "weather" the transition to the new extension structure of Thunderbird 78: MailExtensions.

Content

 

Introduction to MailExtensions, WebExtension APIs and Experiments

To get started with MailExtensions, we suggest to read our Thunderbird MailExtension guide first. You will learn, how MailExtensions use a set of well-defined APIs (called WebExtension APIs), which will be mostly stable, even if the underlying Thunderbird code base is changed. In the past, these internal changes have led to heavy add-on breakages on each new Thunderbird release and the WebExtension API approach aims to minimize that.

You will also learn, that the current set of available WebExtension APIs is far from being complete. Many aspects of Thunderbird which are of interest for add-ons, cannot be accessed by them. To overcome this limitation, add-on developers can write Experiment APIs, which have direct access to internal Thunderbird functions and components and can make them available to MailExtensions.

 

Converting legacy add-ons to MailExtensions

The different methods to update legacy add-ons to MailExtensions are covered in our Thunderbird add-on update guide. You will learn, that they can be converted by removing all legacy parts at once, or step-by-step by using two special wrapper Experiment APIs. To simplify the add-on conversion process, this repository includes the following resources:

Description
WindowListener API BootstrapLoader API Wrapper Experiment APIs to simplify the process to update legacy add-ons to MailExtensions.
Update Tutorials Updating add-ons using the wrapper APIs should only be the first step. We encourage add-on developers to continue the update process to pure MailExtensions, following the listed tutorials. These tutorials are each designed to be completed in a short amount of time, to get the legacy components out piece by piece.
Scripts Scripts used by conversion steps after the initial update using the wrapper APIs.
Tools Tools to help developers update their add-ons more easily.

 

Collaborating on new WebExtension APIs

Reporting missing APIs on Bugzilla

If you have identified a missing functionality or a missing WebExtension API, please check the already existing bugs in the Add-Ons: Extensions API component of Bugzilla to avoid duplicate reports. It may also be helpful to check with us on matrix chat or on topicbox, if the requested functionality is already covered by some existing API.

If the functionality is truely missing and has not yet been reported on Bugzilla, please file a bug in the Add-Ons: Extensions API component at Bugzilla. This will allow us to properly track the progress of the API request.

Discussing missing APIs on Topicbox

While Bugzilla is good for keeping track of such requests, it is not ideal for discussions. Only a small group of developers will get notified of new bugs. To raise awarness of your API request and get feedback on the proposed API design, you must also post it to Topicbox and link your bug to your Topicbox thread. This allows the add-on developer community to be part of the design process.

Working one missing APIs

The main idea behind Experiment APIs is not just to make Thunderbird internals available to MailExtensions, but to actually design and experiment with new WebExtension APIs, which can then be proposed to be merged into Thunderbird.

If you have already started to work on an Experiment API to address the missing functionality, we wish to add it to the list below, to obtain an overview of what APIs are currently being worked on. This will enable add-on developers implementing a certain functionality to collaborate. Contact me directly to get your API added to this list, or file a pull request against this document.

Name Author Discussion Description
NotificationBar @jobisoft 💬 📝 Add Thunderbird notification bars.
CustomUI @rsjtdrjgfuzkfg A generic UI extension framework based iframes registered at fixed extension points.
TCP @rsjtdrjgfuzkfg TCP support based on ArrayBuffers (currently client side only).
Runtime.onDisable @rsjtdrjgfuzkfg Permit WebExtensions to perform (time-limited) cleanup tasks after the add-on is disabled or uninstalled.
composeMessageHeaders @gruemme Adds missing functionality to add headers to a newly composed message. Aims to add a header object to the compose.ComposeDetails object, so headers can be set via compose.setComposeDetails

 

Proposing new WebExtension APIs

These APIs are hosted on a dedicated repository and are on its way to be merged into Thunderbird.

Name Author Description
cloudfile @kewisch Experiment with add-on exposing the Cloudfile feature
calendar @kewisch Draft for calendar-related APIs in Thunderbird

 

Some useful helper Experiment APIs

These APIs are not intended to be merged into Thunderbird. They are very generic and aim to quickly solve a current limitation.

Name Author Description
LegacyPrefs @jobisoft Access Thunderbird preferences
LegacyMenu @jobisoft Add menu entries to Thunderbird menus currently not accessible using the built-in menus API
CachingFix @rsjtdrjgfuzkfg Adding this Experiment API will automatically fix caching issues when the add-on is updated, disabled or uninstalled. A similar feature is built into the WindowListener wrapper API.

 

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages