WebExtension API Documentation for Thunderbird 102

Manifest v2
stable

API Documentation

  • accounts
    • Permissions
    • Functions
      • list([includeFolders])
      • get(accountId, [includeFolders])
      • getDefault([includeFolders])
      • setDefaultIdentity(accountId, identityId)
      • getDefaultIdentity(accountId)
    • Events
      • onCreated
      • onDeleted
      • onUpdated
    • Types
      • MailAccount
  • addressBooks
    • Permissions
    • Functions
      • openUI()
      • closeUI()
      • list([complete])
      • get(id, [complete])
      • create(properties)
      • update(id, properties)
      • delete(id)
    • Events
      • onCreated
      • onUpdated
      • onDeleted
    • Types
      • AddressBookNode
      • NodeType
  • addressBooks.provider
    • Permissions
    • Events
      • onSearchRequest
  • browserAction
    • Manifest file properties
    • Functions
      • setTitle(details)
      • getTitle(details)
      • setLabel(details)
      • getLabel(details)
      • setIcon(details)
      • setPopup(details)
      • getPopup(details)
      • setBadgeText(details)
      • getBadgeText(details)
      • setBadgeBackgroundColor(details)
      • getBadgeBackgroundColor(details)
      • enable([tabId])
      • disable([tabId])
      • isEnabled(details)
      • openPopup()
    • Events
      • onClicked
    • Types
      • ColorArray
      • ImageDataDictionary
      • ImageDataType
      • OnClickData
    • External Types
      • IconPath
      • ThemeIcons
  • cloudFile
    • Manifest file properties
    • Functions
      • getAccount(accountId)
      • getAllAccounts()
      • updateAccount(accountId, updateProperties)
    • Events
      • onFileUpload
      • onFileUploadAbort
      • onFileRename
      • onFileDeleted
      • onAccountAdded
      • onAccountDeleted
    • Types
      • CloudFile
      • CloudFileAccount
      • CloudFileTemplateInfo
      • RelatedCloudFile
  • commands
    • Manifest file properties
    • Functions
      • update(detail)
      • reset(name)
      • getAll()
    • Events
      • onCommand
    • Types
      • Command
      • CommandsShortcut
      • KeyName
  • compose
    • Permissions
    • Functions
      • beginNew([messageId], [details])
      • beginReply(messageId, [replyType], [details])
      • beginForward(messageId, [forwardType], [details])
      • getComposeDetails(tabId)
      • setComposeDetails(tabId, details)
      • getActiveDictionaries(tabId)
      • setActiveDictionaries(tabId, activeDictionaries)
      • listAttachments(tabId)
      • getAttachmentFile(id)
      • addAttachment(tabId, attachment)
      • updateAttachment(tabId, attachmentId, attachment)
      • removeAttachment(tabId, attachmentId)
      • sendMessage(tabId, [options])
      • saveMessage(tabId, [options])
      • getComposeState(tabId)
    • Events
      • onBeforeSend
      • onAfterSend
      • onAfterSave
      • onAttachmentAdded
      • onAttachmentRemoved
      • onIdentityChanged
      • onComposeStateChanged
      • onActiveDictionariesChanged
    • Types
      • ComposeAttachment
      • ComposeDetails
      • ComposeDictionaries
      • ComposeRecipient
      • ComposeRecipientList
      • ComposeState
      • CustomHeader
      • FileAttachment
  • composeAction
    • Manifest file properties
    • Functions
      • setTitle(details)
      • getTitle(details)
      • setLabel(details)
      • getLabel(details)
      • setIcon(details)
      • setPopup(details)
      • getPopup(details)
      • setBadgeText(details)
      • getBadgeText(details)
      • setBadgeBackgroundColor(details)
      • getBadgeBackgroundColor(details)
      • enable([tabId])
      • disable([tabId])
      • isEnabled(details)
      • openPopup()
    • Events
      • onClicked
    • Types
      • ColorArray
      • ImageDataDictionary
      • ImageDataType
      • OnClickData
    • External Types
      • IconPath
      • ThemeIcons
  • composeScripts
    • Functions
      • register(composeScriptOptions)
    • Types
      • RegisteredComposeScript
      • RegisteredComposeScriptOptions
    • External Types
      • ExtensionFileOrCode
  • contacts
    • Permissions
    • Functions
      • list(parentId)
      • quickSearch([parentId], queryInfo)
      • get(id)
      • create(parentId, [id], properties)
      • update(id, properties)
      • delete(id)
    • Events
      • onCreated
      • onUpdated
      • onDeleted
    • Types
      • ContactNode
      • ContactProperties
      • PropertyChange
      • QueryInfo
  • folders
    • Permissions
    • Functions
      • create(parent, childName)
      • rename(folder, newName)
      • move(sourceFolder, destination)
      • copy(sourceFolder, destination)
      • delete(folder)
      • getFolderInfo(folder)
      • getParentFolders(folder, [includeSubFolders])
      • getSubFolders(folderOrAccount, [includeSubFolders])
    • Events
      • onCreated
      • onRenamed
      • onMoved
      • onCopied
      • onDeleted
      • onFolderInfoChanged
    • Types
      • MailFolder
      • MailFolderInfo
  • identities
    • Permissions
    • Functions
      • list([accountId])
      • get(identityId)
      • create(accountId, details)
      • delete(identityId)
      • update(identityId, details)
      • getDefault(accountId)
      • setDefault(accountId, identityId)
    • Events
      • onCreated
      • onDeleted
      • onUpdated
    • Types
      • MailIdentity
  • mailingLists
    • Permissions
    • Functions
      • list(parentId)
      • get(id)
      • create(parentId, properties)
      • update(id, properties)
      • delete(id)
      • addMember(id, contactId)
      • listMembers(id)
      • removeMember(id, contactId)
    • Events
      • onCreated
      • onUpdated
      • onDeleted
      • onMemberAdded
      • onMemberRemoved
    • Types
      • MailingListNode
  • mailTabs
    • Functions
      • query(queryInfo)
      • get(tabId)
      • getCurrent()
      • update([tabId], updateProperties)
      • getSelectedMessages([tabId])
      • setSelectedMessages([tabId], messageIds)
      • setQuickFilter([tabId], properties)
    • Events
      • onDisplayedFolderChanged
      • onSelectedMessagesChanged
    • Types
      • MailTab
      • QuickFilterTextDetail
  • menus
    • Permissions
    • Functions
      • getTargetElement(targetElementId)
      • create(createProperties, [callback])
      • update(id, updateProperties)
      • remove(menuItemId)
      • removeAll()
      • overrideContext(contextOptions)
      • refresh()
    • Events
      • onClicked
      • onShown
      • onHidden
    • Types
      • ContextType
      • ItemType
      • OnClickData
      • OnShowData
    • External Types
      • IconPath
    • Properties
      • ACTION_MENU_TOP_LEVEL_LIMIT
  • messageDisplay
    • Functions
      • getDisplayedMessage(tabId)
      • getDisplayedMessages(tabId)
      • open(openProperties)
    • Events
      • onMessageDisplayed
      • onMessagesDisplayed
  • messageDisplayAction
    • Manifest file properties
    • Functions
      • setTitle(details)
      • getTitle(details)
      • setLabel(details)
      • getLabel(details)
      • setIcon(details)
      • setPopup(details)
      • getPopup(details)
      • setBadgeText(details)
      • getBadgeText(details)
      • setBadgeBackgroundColor(details)
      • getBadgeBackgroundColor(details)
      • enable([tabId])
      • disable([tabId])
      • isEnabled(details)
      • openPopup()
    • Events
      • onClicked
    • Types
      • ColorArray
      • ImageDataDictionary
      • ImageDataType
      • OnClickData
    • External Types
      • IconPath
      • ThemeIcons
  • messageDisplayScripts
    • Permissions
    • Functions
      • register(messageDisplayScriptOptions)
    • Types
      • RegisteredMessageDisplayScript
      • RegisteredMessageDisplayScriptOptions
    • External Types
      • ExtensionFileOrCode
  • messages
    • Permissions
    • Functions
      • list(folder)
      • continueList(messageListId)
      • get(messageId)
      • getFull(messageId)
      • getRaw(messageId)
      • listAttachments(messageId)
      • getAttachmentFile(messageId, partName)
      • query(queryInfo)
      • update(messageId, newProperties)
      • move(messageIds, destination)
      • copy(messageIds, destination)
      • delete(messageIds, [skipTrash])
      • archive(messageIds)
      • listTags()
      • createTag(key, tag, color)
      • updateTag(key, updateProperties)
      • deleteTag(key)
    • Events
      • onUpdated
      • onMoved
      • onCopied
      • onDeleted
      • onNewMailReceived
    • Types
      • MessageAttachment
      • MessageChangeProperties
      • MessageHeader
      • MessageList
      • MessagePart
      • MessageTag
      • TagsDetail
  • spacesToolbar
    • Functions
      • addButton(id, properties)
      • removeButton(id)
      • updateButton(id, properties)
    • Types
      • ButtonProperties
      • ColorArray
    • External Types
      • IconPath
      • ThemeIcons
  • theme
    • Manifest file properties
    • Permissions
    • Functions
      • getCurrent([windowId])
      • update([windowId], details)
      • reset([windowId])
    • Events
      • onUpdated
    • Types
      • ImageDataOrExtensionURL
      • ThemeColor
      • ThemeExperiment
      • ThemeType
      • ThemeUpdateInfo
    • External Types
      • ExtensionURL
  • tabs
    • Permissions
    • Functions
      • get(tabId)
      • getCurrent()
      • connect(tabId, [connectInfo])
      • sendMessage(tabId, message, [options])
      • create(createProperties)
      • duplicate(tabId)
      • query(queryInfo)
      • update([tabId], updateProperties)
      • move(tabIds, moveProperties)
      • reload([tabId], [reloadProperties])
      • remove(tabIds)
      • executeScript([tabId], details)
      • insertCSS([tabId], details)
      • removeCSS([tabId], details)
    • Events
      • onCreated
      • onUpdated
      • onMoved
      • onActivated
      • onDetached
      • onAttached
      • onRemoved
    • Types
      • Tab
      • TabStatus
      • UpdateFilter
      • UpdatePropertyName
      • WindowType
    • Properties
      • TAB_ID_NONE
  • windows
    • Functions
      • get(windowId, [getInfo])
      • getCurrent([getInfo])
      • getLastFocused([getInfo])
      • getAll([getInfo])
      • create([createData])
      • update(windowId, updateInfo)
      • remove(windowId)
      • openDefaultBrowser(url)
    • Events
      • onCreated
      • onRemoved
      • onFocusChanged
    • Types
      • CreateType
      • GetInfo
      • Window
      • WindowState
      • WindowType
    • Properties
      • WINDOW_ID_CURRENT
      • WINDOW_ID_NONE

How To Guides

  • Working with vCard Contacts
    • Updating legacy properties
    • Updating the vCard property
  • Working with WebExtension Events
  • Working with Message Lists
  • WebExtension Experiments
    • Adding an experiment to your extension
      • Extension manifest
      • Schema
      • Implementing functions
      • Implementing events
      • Using folder and message types
      • Using tabs and windows
    • Experiment API Generator
    • Getting your API added to Thunderbird

Changes to APIs

  • Changes in Thunderbird 100
    • compose API
    • spacesToolbar API
  • Changes in Thunderbird 101
    • cloudfile API
    • messageDisplay API
  • Changes in Thunderbird 74
    • legacy
    • accounts/folders
    • compose
    • messages
  • Changes in Thunderbird 75
    • browserAction/composeAction/messageDisplayAction
    • compose
    • messages
  • Changes in Thunderbird 76
    • accounts
    • compose
    • mailTabs/messageDisplay
    • messages
    • experiments
  • Changes in Thunderbird 77
    • compose
    • tabs
    • composeScripts/tabs
  • Changes in Thunderbird 78
    • compose
    • identity
  • Changes in Thunderbird 81
    • messageDisplay
  • Changes in Thunderbird 82
    • compose
    • tabs
    • messageDisplayScripts/tabs
  • Changes in Thunderbird 83
    • compose
    • contacts
    • menus
  • Changes in Thunderbird 84
    • compose
    • menus
    • tabs
    • windows
    • browserAction
    • composeAction
    • messageDisplayAction
  • Changes in Thunderbird 85
    • addressBooks & contacts
    • accounts
    • compose
    • messages
  • Changes in Thunderbird 86
    • theme
  • Changes in Thunderbird 87
    • commands
  • Changes in Thunderbird 88
    • compose
    • contacts
    • menus
    • messages
  • Changes in Thunderbird 89
    • mailTabs
    • menus
  • Changes in Thunderbird 90
    • cloudFile
    • compose
    • messages
  • Changes in Thunderbird 91
    • accounts API
    • addressbooks API
    • browserAction API
    • cloudFile API
    • compose API
    • contacts API
    • folders API
    • identities API
    • mailingLists API
    • mailTabs
    • messages
    • tabs API
  • Changes in Thunderbird 95
    • compose API
  • Changes in Thunderbird 96
    • cloudFile API
    • messages API
  • Changes in Thunderbird 97
    • cloudFile API
  • Changes in Thunderbird 98
    • accounts API
    • cloudFile API
    • compose API
  • Changes in Thunderbird 102
    • compose API
    • folders API
    • messages API
    • messageDisplay API
  • Changes in Thunderbird 102.3.0
    • compose API
  • Changes in Thunderbird 102.3.3
    • browserAction API
    • commands API
    • mailTabs API
  • Changes in Thunderbird 102.5.1
    • todo
WebExtension API Documentation for Thunderbird 102

Manifest v2
  • menus
  • Edit on GitHub

menus

The menus API first appeared in Thunderbird 66. It is basically the same as the Firefox menus API, but modified to suit Thunderbird. Note that Thunderbird does not include the contextMenus alias for this API.

The menus API allows to add items to Thunderbirds menus. You can choose what types of objects your context menu additions apply to, such as images, hyperlinks, and pages.

Permissions

menus

menus.overrideContext

Note

The permission menus is required to use messenger.menus.*.

Functions

getTargetElement(targetElementId)

Retrieve the element that was associated with a recent contextmenu event.

Parameters

targetElementId

(integer)

The identifier of the clicked element, available as info.targetElementId in the onShown and onClicked events.

Return type (Promise)

Element

Required permissions

  • menus

create(createProperties, [callback])

Creates a new context menu item. Note that if an error occurs during creation, you may not find out until the creation callback fires (the details will be in runtime.lastError).

Parameters

createProperties

(object)

[checked]

(boolean)

The initial state of a checkbox or radio item: true for selected and false for unselected. Only one radio item can be selected at a time in a given group of radio items.

[command]

(string)

Specifies a command to issue for the context click. Currently supports internal commands _execute_browser_action, _execute_compose_action and _execute_message_display_action.

[contexts]

(array of ContextType)

List of contexts this menu item will appear in. Defaults to [‘page’] if not specified.

[documentUrlPatterns]

(array of string)

Lets you restrict the item to apply only to documents whose URL matches one of the given patterns. (This applies to frames as well.) For details on the format of a pattern, see Match Patterns.

[enabled]

(boolean)

Whether this context menu item is enabled or disabled. Defaults to true.

[icons]

(IconPath)

Custom icons to display next to the menu item. Custom icons can only be set for items appearing in submenus.

[id]

(string)

The unique ID to assign to this item. Mandatory for event pages. Cannot be the same as another ID for this extension.

[onclick]

(function)

A function that will be called back when the menu item is clicked. Event pages cannot use this.

[parentId]

(integer or string)

The ID of a parent menu item; this makes the item a child of a previously added item.

[targetUrlPatterns]

(array of string)

Similar to documentUrlPatterns, but lets you filter based on the src attribute of img/audio/video tags and the href of anchor tags.

[title]

(string)

The text to be displayed in the item; this is required unless type is separator. When the context is selection, you can use %s within the string to show the selected text. For example, if this parameter’s value is Translate ‘%s’ to Latin and the user selects the word cool, the context menu item for the selection is Translate ‘cool’ to Latin. To specify an access key for the new menu entry, include a & before the desired letter in the title. For example &Help.

[type]

(ItemType)

The type of menu item. Defaults to normal if not specified.

[viewTypes]

(array of ViewType)

List of view types where the menu item will be shown. Defaults to any view, including those without a viewType.

[visible]

(boolean)

Whether the item is visible in the menu.

[callback]

(function)

Called when the item has been created in the browser. If there were any problems creating the item, details will be available in runtime.lastError.

Return type (Promise)

integer or string

The ID of the newly created item.

Required permissions

  • menus

update(id, updateProperties)

Updates a previously created context menu item.

Parameters

id

(integer or string)

The ID of the item to update.

updateProperties

(object)

The properties to update. Accepts the same values as the create function.

[checked]

(boolean)

[contexts]

(array of ContextType)

[documentUrlPatterns]

(array of string)

[enabled]

(boolean)

[icons]

(IconPath)

[onclick]

(function)

[parentId]

(integer or string)

Note: You cannot change an item to be a child of one of its own descendants.

[targetUrlPatterns]

(array of string)

[title]

(string)

[type]

(ItemType)

[viewTypes]

(array of ViewType)

[visible]

(boolean)

Whether the item is visible in the menu.

Required permissions

  • menus

remove(menuItemId)

Removes a context menu item.

Parameters

menuItemId

(integer or string)

The ID of the context menu item to remove.

Required permissions

  • menus

removeAll()

Removes all context menu items added by this extension.

Required permissions

  • menus

overrideContext(contextOptions)

Show the matching menu items from this extension instead of the default menu. This should be called during a contextmenu event handler, and only applies to the menu that opens after this event.

Parameters

contextOptions

(object)

[context]

(string)

ContextType to override, to allow menu items from other extensions in the menu. Currently only tab is supported. contextOptions.showDefaults cannot be used with this option.

Supported values:

tab

[showDefaults]

(boolean)

Whether to also include default menu items in the menu.

[tabId]

(integer)

Required when context is tab. Requires the tabs permission.

Required permissions

  • menus

  • menus.overrideContext

refresh()

Updates the extension items in the shown menu, including changes that have been made since the menu was shown. Has no effect if the menu is hidden. Rebuilding a shown menu is an expensive operation, only invoke this method when necessary.

Required permissions

  • menus

Events

onClicked

Fired when a context menu item is clicked. This is a user input event handler. For asynchronous listeners some restrictions apply.

Parameters for onClicked.addListener(listener)

listener(info, tab)

A function that will be called when this event occurs.

Parameters passed to the listener function

info

(OnClickData)

Information about the item clicked and the context where the click happened.

[tab]

(Tab)

The details of the tab where the click took place. If the click did not take place in a tab, this parameter will be missing.

Required permissions

  • menus

onShown

Fired when a menu is shown. The extension can add, modify or remove menu items and call refresh() to update the menu.

Parameters for onShown.addListener(listener)

listener(info, tab)

A function that will be called when this event occurs.

Parameters passed to the listener function

info

(OnShowData)

Information about the context of the menu action and the created menu items.

tab

(Tab)

The details of the tab where the menu was opened.

Required permissions

  • menus

onHidden

Fired when a menu is hidden. This event is only fired if onShown has fired before.

Parameters for onHidden.addListener(listener)

listener()

A function that will be called when this event occurs.

Required permissions

  • menus

Types

ContextType

The different contexts a menu can appear in. Specifying all is equivalent to the combination of all other contexts excluding tab and tools_menu. More information about each context can be found in the Supported UI Elements article on developer.thunderbird.net.

string

Supported values:

all

page

frame

selection

link

editable

password

image

video

audio

browser_action

compose_action

– [Added in TB 89]

message_display_action

– [Added in TB 89]

tab

message_list

folder_pane

compose_attachments

– [Added in TB 83, backported to TB 78.5.0]

message_attachments

all_message_attachments

tools_menu

– [Added in TB 88]

ItemType

The type of menu item.

string

Supported values:

normal

checkbox

radio

separator

OnClickData

Information sent when a context menu item is clicked.

object

editable

(boolean)

A flag indicating whether the element is editable (text input, textarea, etc.).

menuItemId

(integer or string)

The ID of the menu item that was clicked.

modifiers

(array of string)

An array of keyboard modifiers that were held while the menu item was clicked.

Supported values:

Shift

Alt

Command

Ctrl

MacCtrl

[attachments]

(array of ComposeAttachment or MessageAttachment)

– [Added in TB 83]

The selected attachments. The compose permission is required to return attachments of a message being composed. The messagesRead permission is required to return attachments of displayed messages.

[button]

(integer)

An integer value of button by which menu item was clicked.

[checked]

(boolean)

A flag indicating the state of a checkbox or radio item after it is clicked.

[displayedFolder]

(MailFolder)

The displayed folder, if the context menu was opened in the message list. The accountsRead permission is required.

[fieldId]

(string)

– [Added in TB 89]

An identifier of the clicked Thunderbird UI element, if any.

Supported values:

composeSubject

composeTo

composeCc

composeBcc

composeReplyTo

composeNewsgroupTo

[frameId]

(integer)

The id of the frame of the element where the context menu was clicked.

[frameUrl]

(string)

The URL of the frame of the element where the context menu was clicked, if it was in a frame.

[linkText]

(string)

If the element is a link, the text of that link.

[linkUrl]

(string)

If the element is a link, the URL it points to.

[mediaType]

(string)

One of image, video, or audio if the context menu was activated on one of these types of elements.

[pageUrl]

(string)

The URL of the page where the menu item was clicked. This property is not set if the click occurred in a context where there is no current page, such as in a launcher context menu.

[parentMenuItemId]

(integer or string)

The parent ID, if any, for the item clicked.

[selectedAccount]

(MailAccount)

– [Added in TB 88]

The selected account, if the context menu was opened on an account entry in the folder pane. The accountsRead permission is required.

[selectedFolder]

(MailFolder)

The selected folder, if the context menu was opened in the folder pane. The accountsRead permission is required.

[selectedMessages]

(MessageList)

The selected messages, if the context menu was opened in the message list. The messagesRead permission is required.

[selectionText]

(string)

The text for the context selection, if any.

[srcUrl]

(string)

Will be present for elements with a src URL.

[targetElementId]

(integer)

An identifier of the clicked content element, if any. Use getTargetElement(targetElementId) in the page to find the corresponding element.

[viewType]

(ViewType)

The type of view where the menu is clicked. May be unset if the menu is not associated with a view.

[wasChecked]

(boolean)

A flag indicating the state of a checkbox or radio item before it was clicked.

OnShowData

Information sent when a context menu is being shown. Some properties are only included if the extension has host permission for the given context, for example activeTab for content tabs, compose for compose tabs and messagesRead for message display tabs.

object

contexts

(array of ContextType)

A list of all contexts that apply to the menu.

editable

(boolean)

A flag indicating whether the element is editable (text input, textarea, etc.).

menuIds

(array of integer or string)

A list of IDs of the menu items that were shown.

[attachments]

(array of ComposeAttachment or MessageAttachment)

– [Added in TB 83]

The selected attachments. The compose permission is required to return attachments of a message being composed. The messagesRead permission is required to return attachments of displayed messages.

[displayedFolder]

(MailFolder)

The displayed folder, if the context menu was opened in the message list. The accountsRead permission is required.

[fieldId]

(string)

– [Added in TB 89]

An identifier of the clicked Thunderbird UI element, if any.

Supported values:

composeSubject

composeTo

composeCc

composeBcc

composeReplyTo

composeNewsgroupTo

[frameUrl]

(string)

The URL of the frame of the element where the context menu was clicked, if it was in a frame. Note: Host permission is required.

[linkText]

(string)

If the element is a link, the text of that link. Note: Host permission is required.

[linkUrl]

(string)

If the element is a link, the URL it points to. Note: Host permission is required.

[mediaType]

(string)

One of image, video, or audio if the context menu was activated on one of these types of elements.

[pageUrl]

(string)

The URL of the page where the menu item was clicked. This property is not set if the click occurred in a context where there is no current page, such as in a launcher context menu. Note: Host permission is required.

[selectedAccount]

(MailAccount)

– [Added in TB 88]

The selected account, if the context menu was opened on an account entry in the folder pane. The accountsRead permission is required.

[selectedFolder]

(MailFolder)

The selected folder, if the context menu was opened in the folder pane. The accountsRead permission is required.

[selectedMessages]

(MessageList)

The selected messages, if the context menu was opened in the message list. The messagesRead permission is required.

[selectionText]

(string)

The text for the context selection, if any. Note: Host permission is required.

[srcUrl]

(string)

Will be present for elements with a src URL. Note: Host permission is required.

[targetElementId]

(integer)

An identifier of the clicked content element, if any. Use getTargetElement(targetElementId) in the page to find the corresponding element.

[viewType]

(ViewType)

The type of view where the menu is shown. May be unset if the menu is not associated with a view.

External Types

The following types are not defined by this API, but by the underlying Mozilla WebExtension code base. They are included here, because there is no other public documentation available.

IconPath

Either a string to specify a relative path of a single icon to be used for all sizes, or a dictionary object to specify paths for multiple icons in different sizes, so the icon does not have to be scaled for a device with a different pixel density. Each entry is a name-value pair with value being a relative path to an icon file, and name its size. Example:

{
  "16": "icon16.png",
  "32": "icon32.png"
}

See the MDN documentation about choosing icon sizes for more information on this.

Properties

ACTION_MENU_TOP_LEVEL_LIMIT

The maximum number of top level extension items that can be added to an extension action context menu. Any items beyond this limit will be ignored.

Previous Next

© Copyright . Revision ee696ed5.

Built with Sphinx using a theme provided by Read the Docs.
Read the Docs v: stable
Versions
latest
stable
102
91
latest-mv3
latest-mv2
Downloads
On Read the Docs
Project Home
Builds