browserSettings API
Hint
The browserSettings API is inherited from Firefox, and its primary documentation is maintained by Mozilla at MDN. Thunderbird implements only the subset of functions, events, and types listed here. The MDN pages may provide further details and examples, but they may also reference features that are not supported in Thunderbird.
Use the browser.browserSettings API to control global settings of the browser.
Permissions
The following permissions influence the behavior of the API. Depending on which permissions are requested, additional methods might be available, or certain data may be included in responses.
Hint
Request permissions only when needed. Unnecessary requests may result in rejection during ATN review.
browserSettings
Read and modify browser settings.
Types
ColorManagementMode
Color management mode.
After which mouse event context menus should popup.
ImageAnimationBehavior
How images should be animated in the browser.
Settings
– [Added in TB 57]
Allows or disallows pop-up windows from opening in response to user events.
– [Added in TB 56]
Enables or disables the browser cache.
This boolean setting controls whether the selected tab can be closed with a double click.
– [Added in TB 59]
Controls after which mouse event context menus popup. This setting’s value is of type ContextMenuMouseEvent, which has possible values of mouseup and mousedown.
– [Added in TB 72]
Returns whether the FTP protocol is enabled. Read-only.
Note
From version 88, this setting is read-only (see bug 1626365).
Returns the value of the overridden home page. Read-only.
– [Added in TB 57]
Controls the behaviour of image animation in the browser. This setting’s value is of type ImageAnimationBehavior, defaulting to normal.
Returns the value of the overridden new tab page. Read-only.
Controls where new tabs are opened. afterCurrent will open all new tabs next to the current tab, relatedAfterCurrent will open only related tabs next to the current tab, and atEnd will open all tabs at the end of the tab strip. The default is relatedAfterCurrent.
This boolean setting controls whether bookmarks are opened in the current tab or in a new tab.
This boolean setting controls whether search results are opened in the current tab or in a new tab.
This boolean setting controls whether urlbar results are opened in the current tab or in a new tab.
– [Added in TB 95]
This setting controls whether a light or dark color scheme overrides the page’s preferred color scheme.
– [Added in TB 61]
This setting controls whether the user-chosen colors override the page’s colors.
– [Added in TB 61]
This setting controls whether the document’s fonts are used.
This boolean setting controls whether vertical tabs are enabled.
– [Added in TB 58]
Disables webAPI notifications.
– [Added in TB 75]
This boolean setting controls whether zoom is applied to the full page or to text only.
This boolean setting controls whether zoom is applied on a per-site basis or to the current tab only. If privacy.resistFingerprinting is true, this setting has no effect and zoom is applied to the current tab only.