Supported WebExtension APIs
Descriptions of all WebExtension API supported by Thunderbird.
Thunderbird WebExtension APIs
Thunderbird provides the following messenger related WebExtension APIs, which are sometimes referred to as MailExtension APIs.
accountsRead
Enables an extension to access information of accounts and identities configured in Thunderbird's account manager.
addressBooks
Enables an extension to access, modify, create and delete Thunderbird address books.
Permission info:
This API does not require a permission, but a
browser_action
manifest key.
Enables an extension to register a cloudFile provider, which can be used to upload large attachments to a server, instead of attaching them directly to the email.
Permission info:
This API does not require a permission, but a
cloudFile
manifest key.
The commands API adds keyboard shortcuts that can trigger actions in an extension. Permission info:
This API does not require a permission, but a
commands
manifest key.
compose
Enables an extension to open a new message compose window or react to events while the message is being composed.
Permission info:
This API does not require a permission, but a
compose_action
manifest key.
compose
addressBooks
Enables an extension to access, modify, create and delete contacts in Thunderbird address books.
accountsFolders
Enables an extension to access, modify, create and delete mail account folders.
addressBooks
Enables an extension to access, modify, create and delete mailing lists in Thunderbird address books.
accountsFolders
Enables an extension to interact with Thunderbird's main window. Permission info:
The
accountsFolders
permission is only needed to set the currently displayed folder.
accountsRead, messagesRead,
activeTab
Enables an extension to add (context-) menu entries to Thunderbird menus. Permission info:
messagesRead
Enables an extension to react on and interact with the currently displayed messages.
This API does not require a permission, but a
message_display_action
manifest key.
messagesModify
messagesRead,
messagesMove, accountsRead
Enables an extension to list, search, read, copy, move and delete messages.
Permission info:
The
messagesRead
permission is needed to list, read, mark and tag messages.The
messagesMove
permission is needed to copy, move and delete messages.The
accountsRead
permission is needed by any function/event which involves folder information.
tabs, activeTab, compose, messageModify
Enables an extension to interact with Thunderbird's tab system. It allows to create, modify, and rearrange tabs and to communicate with scripts in tabs. Permission info:
The
tabs
oractiveTab
permission is only needed if theurl
,favIconUrl
ortitle
information of tabs are accessed. Thetab
permission will allow access to that information in all tabs, theactiveTab
permission restricts that to the active tab. Note: TheactiveTab
permission implies the<all_urls>
host permission for the active (web page -) tab.The
compose
permissions is needed to calltabs.executeScript()
andtabs.insertCSS()
for compose tabs.The
messageModify
permission is needed to calltabs.executeScript()
andtabs.insertCSS()
for a message display tab.
theme
The theme API can be used to create static or dynamic Thunderbird themes. Theme experiments are supported.
Permission info:
The
theme
permission is needed to dynamically update the theme.
tabs
Enables an extension to interact with Thunderbird's windows which can contain webpage tabs and also other window types like composer or address books that cannot contain webpage tabs. You can use this API to create, modify, and rearrange windows.
Permission info:
You can find more information in the Thunderbird WebExtensions API documentation .
Firefox WebExtension APIs
As Thunderbird is based on Firefox, many of its WebExtension APIs can be used in Thunderbird as well. The APIs listed in the following table are known to work with Thunderbird.
The following APIs link to their MDN description pages. Please be aware, that MDN is dedicated to web browsers (not limited to Firefox). Some information listed on MDN may not apply to Thunderbird and some API methods may not be supported. Each API page should include a compatibility chart and if that includes support for Firefox, it should work in Thunderbird as well.
browserSettings
clipboardWrite,
clipboardRead
Enables an extension to copy items to the system clipboard. Currently the API only supports copying images, but it's intended to support copying text and HTML in the future. Permission info:
Use this API to register content scripts to instruct the browser to insert the given content scripts into pages that match the URL patterns specified during registration. In Thunderbird, content scripts can only be used in web pages loaded into tabs. Permission info:
cookies
Enables an extension to get and set cookies, and be notified when they change. Permission info:
dns
Enables an extension to resolve domain names.
downloads,
downloads.open
Functions to internationalize an extension. It can be used to get localized strings from locale files packaged with an extension and to find out Thunderbird's current language.
identity
idle
Find out when the user's system is idle, locked, or active.
privacy
Access and modify various privacy-related settings.
management
Gets information about installed add-ons. Permission info:
The
management
permission is only needed to access information of other add-on.
notifications
Display notifications to the user, using the underlying operating system's notification mechanism.
Enables extensions to request extra permissions at runtime, after they have been installed.
pkcs11
proxy
This module provides information about the extension and the environment it's running in. It also provides messaging APIs to:
communicate between different parts of the extension
communicate with other extensions
communicate with native applications
Usage info:
On macOS, Thunderbird looks for native messaging manifests in the per-user path
~/Library/Mozilla/NativeMessagingHosts/
rather than~/Library/Application Support/Mozilla/NativeMessagingHosts/
On macOS, the global path for native messaging manifests is
/Library/Application Support/Mozilla/NativeMessagingHosts/
(the same as Firefox)
Enables extensions to store and retrieve data, and listen for changes to stored items.
Use this API to register user scripts, third-party scripts designed to manipulate webpages or provide new features. Registering a user script instructs the browser to attach the script to pages that match the URL patterns specified during registration. In Thunderbird, user scripts can only be used in web pages loaded into tabs. This API offers similar capabilities to contentScripts but with features suited to handling third-party scripts.
webNavigation
Add event listeners for the various stages of a navigation. A navigation consists of a frame in the browser transitioning from one URL to another, usually (but not always) in response to a user action like clicking a link.
webRequest, webRequestBlocking
Add event listeners for the various stages of making an HTTP request, which includes websocket requests on ws://
and wss://
. The event listener receives detailed information about the request and can modify or cancel the request.
Permission info:
To use the blocking feature, the extension must also have the
webRequestBlocking
API permission.
You can find more information about these APIs in the MDN WebExtension API documentation.
Last updated
Was this helpful?