repo_id stringlengths 22 103 | file_path stringlengths 41 147 | content stringlengths 181 193k | __index_level_0__ int64 0 0 |
|---|---|---|---|
data/mdn-content/files/en-us/mozilla/add-ons/webextensions/api/menus | data/mdn-content/files/en-us/mozilla/add-ons/webextensions/api/menus/refresh/index.md | ---
title: menus.refresh()
slug: Mozilla/Add-ons/WebExtensions/API/menus/refresh
page-type: webextension-api-function
browser-compat: webextensions.api.menus.refresh
---
{{AddonSidebar}}
Refreshes a menu that's being shown.
Updates the extension's menu items in the menu that the browser is currently showing, includi... | 0 |
data/mdn-content/files/en-us/mozilla/add-ons/webextensions/api/menus | data/mdn-content/files/en-us/mozilla/add-ons/webextensions/api/menus/gettargetelement/index.md | ---
title: menus.getTargetElement()
slug: Mozilla/Add-ons/WebExtensions/API/menus/getTargetElement
page-type: webextension-api-function
browser-compat: webextensions.api.menus.getTargetElement
---
{{AddonSidebar}}
Returns the element for a given `targetElementId`
This method is available to all extension script cont... | 0 |
data/mdn-content/files/en-us/mozilla/add-ons/webextensions/api/menus | data/mdn-content/files/en-us/mozilla/add-ons/webextensions/api/menus/onclicked/index.md | ---
title: menus.onClicked
slug: Mozilla/Add-ons/WebExtensions/API/menus/onClicked
page-type: webextension-api-event
browser-compat: webextensions.api.menus.onClicked
---
{{AddonSidebar}}
Fired when a menu item is clicked.
For compatibility with other browsers, Firefox makes this event available via the `contextMenu... | 0 |
data/mdn-content/files/en-us/mozilla/add-ons/webextensions/api/menus | data/mdn-content/files/en-us/mozilla/add-ons/webextensions/api/menus/action_menu_top_level_limit/index.md | ---
title: menus.ACTION_MENU_TOP_LEVEL_LIMIT
slug: Mozilla/Add-ons/WebExtensions/API/menus/ACTION_MENU_TOP_LEVEL_LIMIT
page-type: webextension-api-property
browser-compat: webextensions.api.menus.ACTION_MENU_TOP_LEVEL_LIMIT
---
{{AddonSidebar}}
The maximum number of top level extension items that can be added to a me... | 0 |
data/mdn-content/files/en-us/mozilla/add-ons/webextensions/api/menus | data/mdn-content/files/en-us/mozilla/add-ons/webextensions/api/menus/removeall/index.md | ---
title: menus.removeAll()
slug: Mozilla/Add-ons/WebExtensions/API/menus/removeAll
page-type: webextension-api-function
browser-compat: webextensions.api.menus.removeAll
---
{{AddonSidebar}}
Removes all menu items added by the extension.
For compatibility with other browsers, Firefox makes this method available vi... | 0 |
data/mdn-content/files/en-us/mozilla/add-ons/webextensions/api/menus | data/mdn-content/files/en-us/mozilla/add-ons/webextensions/api/menus/onhidden/index.md | ---
title: menus.onHidden
slug: Mozilla/Add-ons/WebExtensions/API/menus/onHidden
page-type: webextension-api-event
browser-compat: webextensions.api.menus.onHidden
---
{{AddonSidebar}}
Fired when the browser stops displaying a menu: for example because the user clicked outside it or selected an item.
It is only trig... | 0 |
data/mdn-content/files/en-us/mozilla/add-ons/webextensions/api/menus | data/mdn-content/files/en-us/mozilla/add-ons/webextensions/api/menus/update/index.md | ---
title: menus.update()
slug: Mozilla/Add-ons/WebExtensions/API/menus/update
page-type: webextension-api-function
browser-compat: webextensions.api.menus.update
---
{{AddonSidebar}}
Updates a previously created menu item.
For compatibility with other browsers, Firefox makes this method available via the `contextMe... | 0 |
data/mdn-content/files/en-us/mozilla/add-ons/webextensions/api/menus | data/mdn-content/files/en-us/mozilla/add-ons/webextensions/api/menus/onshown/index.md | ---
title: menus.onShown
slug: Mozilla/Add-ons/WebExtensions/API/menus/onShown
page-type: webextension-api-event
browser-compat: webextensions.api.menus.onShown
---
{{AddonSidebar}}
Fired when the browser has shown a menu.
An extension can use this event to update its menu items using information that's only availab... | 0 |
data/mdn-content/files/en-us/mozilla/add-ons/webextensions/api/menus | data/mdn-content/files/en-us/mozilla/add-ons/webextensions/api/menus/itemtype/index.md | ---
title: menus.ItemType
slug: Mozilla/Add-ons/WebExtensions/API/menus/ItemType
page-type: webextension-api-type
browser-compat: webextensions.api.menus.ItemType
---
{{AddonSidebar}}
The type of menu item.
## Type
Values of this type are strings. Possible values are:
- normal
- : A menu item that just displays ... | 0 |
data/mdn-content/files/en-us/mozilla/add-ons/webextensions/api/menus | data/mdn-content/files/en-us/mozilla/add-ons/webextensions/api/menus/contexttype/index.md | ---
title: menus.ContextType
slug: Mozilla/Add-ons/WebExtensions/API/menus/ContextType
page-type: webextension-api-type
browser-compat: webextensions.api.menus.ContextType
---
{{AddonSidebar}}
The different contexts a menu item can appear in.
## Type
Values of this type are strings. The item is displayed when the g... | 0 |
data/mdn-content/files/en-us/mozilla/add-ons/webextensions/api/menus | data/mdn-content/files/en-us/mozilla/add-ons/webextensions/api/menus/onclickdata/index.md | ---
title: menus.OnClickData
slug: Mozilla/Add-ons/WebExtensions/API/menus/OnClickData
page-type: webextension-api-type
browser-compat: webextensions.api.menus.OnClickData
---
{{AddonSidebar}}
Information passed to the {{WebExtAPIRef("menus.onClicked")}} event listener when a menu item is clicked.
## Type
Values of... | 0 |
data/mdn-content/files/en-us/mozilla/add-ons/webextensions/api/menus | data/mdn-content/files/en-us/mozilla/add-ons/webextensions/api/menus/overridecontext/index.md | ---
title: menus.overrideContext()
slug: Mozilla/Add-ons/WebExtensions/API/menus/overrideContext
page-type: webextension-api-function
browser-compat: webextensions.api.menus.overrideContext
---
{{AddonSidebar}}
Hide all default Firefox menu items in favor of providing a custom context menu UI.
The overrideContext me... | 0 |
data/mdn-content/files/en-us/mozilla/add-ons/webextensions/api | data/mdn-content/files/en-us/mozilla/add-ons/webextensions/api/action/index.md | ---
title: action
slug: Mozilla/Add-ons/WebExtensions/API/action
page-type: webextension-api
browser-compat: webextensions.api.action
---
{{AddonSidebar}}
Adds a button to the browser's toolbar.
> **Note:** This API is available in Manifest V3 or higher. It replaces the Manifest V2 APIs {{WebExtAPIRef("browserAction... | 0 |
data/mdn-content/files/en-us/mozilla/add-ons/webextensions/api/action | data/mdn-content/files/en-us/mozilla/add-ons/webextensions/api/action/enable/index.md | ---
title: action.enable()
slug: Mozilla/Add-ons/WebExtensions/API/action/enable
page-type: webextension-api-function
browser-compat: webextensions.api.action.enable
---
{{AddonSidebar}}
Enables the browser action for a tab. By default, browser actions are enabled for all tabs.
> **Note:** This API is available in M... | 0 |
data/mdn-content/files/en-us/mozilla/add-ons/webextensions/api/action | data/mdn-content/files/en-us/mozilla/add-ons/webextensions/api/action/getbadgetextcolor/index.md | ---
title: action.getBadgeTextColor()
slug: Mozilla/Add-ons/WebExtensions/API/action/getBadgeTextColor
page-type: webextension-api-function
browser-compat: webextensions.api.action.getBadgeTextColor
---
{{AddonSidebar}}
Gets the text color for the browser action's badge.
> **Note:** This API is available in Manifest... | 0 |
data/mdn-content/files/en-us/mozilla/add-ons/webextensions/api/action | data/mdn-content/files/en-us/mozilla/add-ons/webextensions/api/action/getpopup/index.md | ---
title: action.getPopup()
slug: Mozilla/Add-ons/WebExtensions/API/action/getPopup
page-type: webextension-api-function
browser-compat: webextensions.api.action.getPopup
---
{{AddonSidebar}}
Gets the HTML document set as the popup for this browser action.
> **Note:** This API is available in Manifest V3 or higher.... | 0 |
data/mdn-content/files/en-us/mozilla/add-ons/webextensions/api/action | data/mdn-content/files/en-us/mozilla/add-ons/webextensions/api/action/getbadgebackgroundcolor/index.md | ---
title: action.getBadgeBackgroundColor()
slug: Mozilla/Add-ons/WebExtensions/API/action/getBadgeBackgroundColor
page-type: webextension-api-function
browser-compat: webextensions.api.action.getBadgeBackgroundColor
---
{{AddonSidebar}}
Gets the background color of the browser action's badge.
> **Note:** This API i... | 0 |
data/mdn-content/files/en-us/mozilla/add-ons/webextensions/api/action | data/mdn-content/files/en-us/mozilla/add-ons/webextensions/api/action/colorarray/index.md | ---
title: action.ColorArray
slug: Mozilla/Add-ons/WebExtensions/API/action/ColorArray
page-type: webextension-api-type
browser-compat: webextensions.api.action.ColorArray
---
{{AddonSidebar}}
## Type
An `array` of four integers in the range 0-255, defining an RGBA color. The four values specify the following channe... | 0 |
data/mdn-content/files/en-us/mozilla/add-ons/webextensions/api/action | data/mdn-content/files/en-us/mozilla/add-ons/webextensions/api/action/setbadgebackgroundcolor/index.md | ---
title: action.setBadgeBackgroundColor()
slug: Mozilla/Add-ons/WebExtensions/API/action/setBadgeBackgroundColor
page-type: webextension-api-function
browser-compat: webextensions.api.action.setBadgeBackgroundColor
---
{{AddonSidebar}}
Sets the background color for the badge. Tabs without a specific badge backgroun... | 0 |
data/mdn-content/files/en-us/mozilla/add-ons/webextensions/api/action | data/mdn-content/files/en-us/mozilla/add-ons/webextensions/api/action/settitle/index.md | ---
title: action.setTitle()
slug: Mozilla/Add-ons/WebExtensions/API/action/setTitle
page-type: webextension-api-function
browser-compat: webextensions.api.action.setTitle
---
{{AddonSidebar}}
Sets the browser action's title. The title is displayed in a tooltip over the browser action's icon. You can pass a `tabId` i... | 0 |
data/mdn-content/files/en-us/mozilla/add-ons/webextensions/api/action | data/mdn-content/files/en-us/mozilla/add-ons/webextensions/api/action/seticon/index.md | ---
title: action.setIcon()
slug: Mozilla/Add-ons/WebExtensions/API/action/setIcon
page-type: webextension-api-function
browser-compat: webextensions.api.action.setIcon
---
{{AddonSidebar}}
Sets the icon for the browser action.
> **Note:** This API is available in Manifest V3 or higher.
You can specify a single ico... | 0 |
data/mdn-content/files/en-us/mozilla/add-ons/webextensions/api/action | data/mdn-content/files/en-us/mozilla/add-ons/webextensions/api/action/onclicked/index.md | ---
title: action.onClicked
slug: Mozilla/Add-ons/WebExtensions/API/action/onClicked
page-type: webextension-api-event
browser-compat: webextensions.api.action.onClicked
---
{{AddonSidebar}}
Fired when a browser action icon is clicked. This event will not fire if the browser action has a popup.
> **Note:** This API ... | 0 |
data/mdn-content/files/en-us/mozilla/add-ons/webextensions/api/action | data/mdn-content/files/en-us/mozilla/add-ons/webextensions/api/action/isenabled/index.md | ---
title: action.isEnabled()
slug: Mozilla/Add-ons/WebExtensions/API/action/isEnabled
page-type: webextension-api-function
browser-compat: webextensions.api.action.isEnabled
---
{{AddonSidebar}}
Returns `true` if the browser action is enabled.
> **Note:** This API is available in Manifest V3 or higher.
This is an ... | 0 |
data/mdn-content/files/en-us/mozilla/add-ons/webextensions/api/action | data/mdn-content/files/en-us/mozilla/add-ons/webextensions/api/action/getusersettings/index.md | ---
title: action.getUserSettings()
slug: Mozilla/Add-ons/WebExtensions/API/action/getUserSettings
page-type: webextension-api-function
browser-compat: webextensions.api.action.getUserSettings
---
{{AddonSidebar}}
Gets the user-specified settings for the browser action.
> **Note:** This API is available in Manifest ... | 0 |
data/mdn-content/files/en-us/mozilla/add-ons/webextensions/api/action | data/mdn-content/files/en-us/mozilla/add-ons/webextensions/api/action/gettitle/index.md | ---
title: action.getTitle()
slug: Mozilla/Add-ons/WebExtensions/API/action/getTitle
page-type: webextension-api-function
browser-compat: webextensions.api.action.getTitle
---
{{AddonSidebar}}
Gets the browser action's title.
> **Note:** This API is available in Manifest V3 or higher.
Just as you can set the title ... | 0 |
data/mdn-content/files/en-us/mozilla/add-ons/webextensions/api/action | data/mdn-content/files/en-us/mozilla/add-ons/webextensions/api/action/openpopup/index.md | ---
title: action.openPopup()
slug: Mozilla/Add-ons/WebExtensions/API/action/openPopup
page-type: webextension-api-function
browser-compat: webextensions.api.action.openPopup
---
{{AddonSidebar}}
Open the browser action's popup.
> **Note:** This API is available in Manifest V3 or higher.
In stable versions of Firef... | 0 |
data/mdn-content/files/en-us/mozilla/add-ons/webextensions/api/action | data/mdn-content/files/en-us/mozilla/add-ons/webextensions/api/action/getbadgetext/index.md | ---
title: action.getBadgeText()
slug: Mozilla/Add-ons/WebExtensions/API/action/getBadgeText
page-type: webextension-api-function
browser-compat: webextensions.api.action.getBadgeText
---
{{AddonSidebar}}
Gets the browser action's badge text.
> **Note:** This API is available in Manifest V3 or higher.
This is an as... | 0 |
data/mdn-content/files/en-us/mozilla/add-ons/webextensions/api/action | data/mdn-content/files/en-us/mozilla/add-ons/webextensions/api/action/setbadgetext/index.md | ---
title: action.setBadgeText()
slug: Mozilla/Add-ons/WebExtensions/API/action/setBadgeText
page-type: webextension-api-function
browser-compat: webextensions.api.action.setBadgeText
---
{{AddonSidebar}}
Sets the badge text for the browser action. The badge is displayed on top of the icon.
> **Note:** This API is a... | 0 |
data/mdn-content/files/en-us/mozilla/add-ons/webextensions/api/action | data/mdn-content/files/en-us/mozilla/add-ons/webextensions/api/action/disable/index.md | ---
title: action.disable()
slug: Mozilla/Add-ons/WebExtensions/API/action/disable
page-type: webextension-api-function
browser-compat: webextensions.api.action.disable
---
{{AddonSidebar}}
Disables the browser action for a tab, meaning that it cannot be clicked when that tab is active.
> **Note:** This API is avail... | 0 |
data/mdn-content/files/en-us/mozilla/add-ons/webextensions/api/action | data/mdn-content/files/en-us/mozilla/add-ons/webextensions/api/action/setpopup/index.md | ---
title: action.setPopup()
slug: Mozilla/Add-ons/WebExtensions/API/action/setPopup
page-type: webextension-api-function
browser-compat: webextensions.api.action.setPopup
---
{{AddonSidebar}}
Sets the HTML document that is opened as a popup when the user clicks on the browser action's icon. Tabs without a specific p... | 0 |
data/mdn-content/files/en-us/mozilla/add-ons/webextensions/api/action | data/mdn-content/files/en-us/mozilla/add-ons/webextensions/api/action/setbadgetextcolor/index.md | ---
title: action.setBadgeTextColor()
slug: Mozilla/Add-ons/WebExtensions/API/action/setBadgeTextColor
page-type: webextension-api-function
browser-compat: webextensions.api.action.setBadgeTextColor
---
{{AddonSidebar}}
Sets the text color for the browser action's badge. Tabs without a specific badge text color will ... | 0 |
data/mdn-content/files/en-us/mozilla/add-ons/webextensions/api/action | data/mdn-content/files/en-us/mozilla/add-ons/webextensions/api/action/imagedatatype/index.md | ---
title: action.ImageDataType
slug: Mozilla/Add-ons/WebExtensions/API/action/ImageDataType
page-type: webextension-api-type
browser-compat: webextensions.api.action.ImageDataType
---
{{AddonSidebar}}
Pixel data for an image. Must be an [`ImageData`](/en-US/docs/Web/API/ImageData) object (for example, from a {{htmle... | 0 |
data/mdn-content/files/en-us/mozilla/add-ons/webextensions/api | data/mdn-content/files/en-us/mozilla/add-ons/webextensions/api/theme/index.md | ---
title: theme
slug: Mozilla/Add-ons/WebExtensions/API/theme
page-type: webextension-api
browser-compat: webextensions.api.theme
---
{{AddonSidebar}}
Enables browser extensions to get details of the browser's theme and update the theme.
You can use this API to include a theme in your extension, which you define as... | 0 |
data/mdn-content/files/en-us/mozilla/add-ons/webextensions/api/theme | data/mdn-content/files/en-us/mozilla/add-ons/webextensions/api/theme/update/index.md | ---
title: theme.update()
slug: Mozilla/Add-ons/WebExtensions/API/theme/update
page-type: webextension-api-function
browser-compat: webextensions.api.theme.update
---
{{AddonSidebar}}
Updates the browser theme according to the content of the {{WebExtAPIRef("theme.Theme", "Theme")}} object.
To use this method, an ext... | 0 |
data/mdn-content/files/en-us/mozilla/add-ons/webextensions/api/theme | data/mdn-content/files/en-us/mozilla/add-ons/webextensions/api/theme/theme/index.md | ---
title: Theme
slug: Mozilla/Add-ons/WebExtensions/API/theme/Theme
page-type: webextension-api-type
browser-compat: webextensions.api.theme.Theme
---
{{AddonSidebar}}
A Theme object represents the specification of a theme.
## Type
A JSON [object](/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object) that ta... | 0 |
data/mdn-content/files/en-us/mozilla/add-ons/webextensions/api/theme | data/mdn-content/files/en-us/mozilla/add-ons/webextensions/api/theme/getcurrent/index.md | ---
title: theme.getCurrent()
slug: Mozilla/Add-ons/WebExtensions/API/theme/getCurrent
page-type: webextension-api-function
browser-compat: webextensions.api.theme.getCurrent
---
{{AddonSidebar}}
Gets the current theme as a {{WebExtAPIRef("theme.Theme", "Theme")}} object.
This is an asynchronous function that return... | 0 |
data/mdn-content/files/en-us/mozilla/add-ons/webextensions/api/theme | data/mdn-content/files/en-us/mozilla/add-ons/webextensions/api/theme/onupdated/index.md | ---
title: theme.onUpdated
slug: Mozilla/Add-ons/WebExtensions/API/theme/onUpdated
page-type: webextension-api-event
browser-compat: webextensions.api.theme.onUpdated
---
{{AddonSidebar}}
Fires when a theme supplied as a browser extension is applied or removed. Specifically:
- when a [static theme](https://extension... | 0 |
data/mdn-content/files/en-us/mozilla/add-ons/webextensions/api/theme | data/mdn-content/files/en-us/mozilla/add-ons/webextensions/api/theme/reset/index.md | ---
title: theme.reset()
slug: Mozilla/Add-ons/WebExtensions/API/theme/reset
page-type: webextension-api-function
browser-compat: webextensions.api.theme.reset
---
{{AddonSidebar}}
Resets any theme applied using the {{WebExtAPIRef("theme.update()")}} method.
To use this method, an extension must request the "theme" ... | 0 |
data/mdn-content/files/en-us/mozilla/add-ons/webextensions/api | data/mdn-content/files/en-us/mozilla/add-ons/webextensions/api/extensiontypes/index.md | ---
title: extensionTypes
slug: Mozilla/Add-ons/WebExtensions/API/extensionTypes
page-type: webextension-api
browser-compat: webextensions.api.extensionTypes
---
{{AddonSidebar}}
Some common types used in other WebExtension APIs.
## Types
- {{WebExtAPIRef("extensionTypes.ImageDetails")}}
- : Details about the for... | 0 |
data/mdn-content/files/en-us/mozilla/add-ons/webextensions/api/extensiontypes | data/mdn-content/files/en-us/mozilla/add-ons/webextensions/api/extensiontypes/runat/index.md | ---
title: extensionTypes.RunAt
slug: Mozilla/Add-ons/WebExtensions/API/extensionTypes/RunAt
page-type: webextension-api-type
browser-compat: webextensions.api.extensionTypes.RunAt
---
{{AddonSidebar}}
The soonest that the JavaScript or CSS will be injected into the tab.
## Type
Values of this type are strings. Pos... | 0 |
data/mdn-content/files/en-us/mozilla/add-ons/webextensions/api/extensiontypes | data/mdn-content/files/en-us/mozilla/add-ons/webextensions/api/extensiontypes/imagedetails/index.md | ---
title: extensionTypes.ImageDetails
slug: Mozilla/Add-ons/WebExtensions/API/extensionTypes/ImageDetails
page-type: webextension-api-type
browser-compat: webextensions.api.extensionTypes.ImageDetails
---
{{AddonSidebar}}
Details about the format, quality, area and scale of a captured image.
## Type
Values of this... | 0 |
data/mdn-content/files/en-us/mozilla/add-ons/webextensions/api/extensiontypes | data/mdn-content/files/en-us/mozilla/add-ons/webextensions/api/extensiontypes/imageformat/index.md | ---
title: extensionTypes.ImageFormat
slug: Mozilla/Add-ons/WebExtensions/API/extensionTypes/ImageFormat
page-type: webextension-api-type
browser-compat: webextensions.api.extensionTypes.ImageFormat
---
{{AddonSidebar}}
The format of an image.
## Type
Values of this type are strings. Possible values are: `"jpeg"`, ... | 0 |
data/mdn-content/files/en-us/mozilla/add-ons/webextensions/api/extensiontypes | data/mdn-content/files/en-us/mozilla/add-ons/webextensions/api/extensiontypes/injectdetails/index.md | ---
title: extensionTypes.InjectDetails
slug: Mozilla/Add-ons/WebExtensions/API/extensionTypes/InjectDetails
page-type: webextension-api-type
---
{{AddonSidebar}}
This type is given as a parameter to the `tabs.executeScript()`, `tabs.insertCSS()`, and `tabs.removeCSS()` methods. For the details of its properties and ... | 0 |
data/mdn-content/files/en-us/mozilla/add-ons/webextensions/api | data/mdn-content/files/en-us/mozilla/add-ons/webextensions/api/pkcs11/index.md | ---
title: pkcs11
slug: Mozilla/Add-ons/WebExtensions/API/pkcs11
page-type: webextension-api
browser-compat: webextensions.api.pkcs11
---
{{AddonSidebar}}
The `pkcs11` API enables an extension to enumerate [PKCS #11](https://en.wikipedia.org/wiki/PKCS_11) security modules and to make them accessible to the browser as... | 0 |
data/mdn-content/files/en-us/mozilla/add-ons/webextensions/api/pkcs11 | data/mdn-content/files/en-us/mozilla/add-ons/webextensions/api/pkcs11/getmoduleslots/index.md | ---
title: pkcs11.getModuleSlots()
slug: Mozilla/Add-ons/WebExtensions/API/pkcs11/getModuleSlots
page-type: webextension-api-function
browser-compat: webextensions.api.pkcs11.getModuleSlots
---
{{AddonSidebar}}
Enumerate a module's slots. This function returns an array containing one entry for each slot. Each entry c... | 0 |
data/mdn-content/files/en-us/mozilla/add-ons/webextensions/api/pkcs11 | data/mdn-content/files/en-us/mozilla/add-ons/webextensions/api/pkcs11/ismoduleinstalled/index.md | ---
title: pkcs11.isModuleInstalled()
slug: Mozilla/Add-ons/WebExtensions/API/pkcs11/isModuleInstalled
page-type: webextension-api-function
browser-compat: webextensions.api.pkcs11.isModuleInstalled
---
{{AddonSidebar}}
Checks whether the named PKCS #11 module is currently installed in Firefox.
This is an asynchrono... | 0 |
data/mdn-content/files/en-us/mozilla/add-ons/webextensions/api/pkcs11 | data/mdn-content/files/en-us/mozilla/add-ons/webextensions/api/pkcs11/installmodule/index.md | ---
title: pkcs11.installModule()
slug: Mozilla/Add-ons/WebExtensions/API/pkcs11/installModule
page-type: webextension-api-function
browser-compat: webextensions.api.pkcs11.installModule
---
{{AddonSidebar}}
Installs the named PKCS #11 module, making it available to Firefox.
This is an asynchronous function that ret... | 0 |
data/mdn-content/files/en-us/mozilla/add-ons/webextensions/api/pkcs11 | data/mdn-content/files/en-us/mozilla/add-ons/webextensions/api/pkcs11/uninstallmodule/index.md | ---
title: pkcs11.uninstallModule()
slug: Mozilla/Add-ons/WebExtensions/API/pkcs11/uninstallModule
page-type: webextension-api-function
browser-compat: webextensions.api.pkcs11.uninstallModule
---
{{AddonSidebar}}
Uninstalls the named PKCS #11 module from Firefox.
This is an asynchronous function that returns a [`Pr... | 0 |
data/mdn-content/files/en-us/mozilla/add-ons/webextensions/api | data/mdn-content/files/en-us/mozilla/add-ons/webextensions/api/bookmarks/index.md | ---
title: bookmarks
slug: Mozilla/Add-ons/WebExtensions/API/bookmarks
page-type: webextension-api
browser-compat: webextensions.api.bookmarks
---
{{AddonSidebar}}
The [WebExtensions](/en-US/docs/Mozilla/Add-ons/WebExtensions) {{WebExtAPIRef("bookmarks")}} API lets an extension interact with and manipulate the browse... | 0 |
data/mdn-content/files/en-us/mozilla/add-ons/webextensions/api/bookmarks | data/mdn-content/files/en-us/mozilla/add-ons/webextensions/api/bookmarks/remove/index.md | ---
title: bookmarks.remove()
slug: Mozilla/Add-ons/WebExtensions/API/bookmarks/remove
page-type: webextension-api-function
browser-compat: webextensions.api.bookmarks.remove
---
{{AddonSidebar}}
The **`bookmarks.remove()`** method removes a single bookmark or an empty bookmark folder.
> **Warning:** If your extensi... | 0 |
data/mdn-content/files/en-us/mozilla/add-ons/webextensions/api/bookmarks | data/mdn-content/files/en-us/mozilla/add-ons/webextensions/api/bookmarks/onchanged/index.md | ---
title: bookmarks.onChanged
slug: Mozilla/Add-ons/WebExtensions/API/bookmarks/onChanged
page-type: webextension-api-event
browser-compat: webextensions.api.bookmarks.onChanged
---
{{AddonSidebar}}
Fired when there is a change to:
- the title or URL of a bookmark
- the name of a folder.
## Syntax
```js-nolint
br... | 0 |
data/mdn-content/files/en-us/mozilla/add-ons/webextensions/api/bookmarks | data/mdn-content/files/en-us/mozilla/add-ons/webextensions/api/bookmarks/get/index.md | ---
title: bookmarks.get()
slug: Mozilla/Add-ons/WebExtensions/API/bookmarks/get
page-type: webextension-api-function
browser-compat: webextensions.api.bookmarks.get
---
{{AddonSidebar}}
Given the ID of a {{WebExtAPIRef("bookmarks.BookmarkTreeNode")}} or an array of such IDs, the **`bookmarks.get()`** method retrieve... | 0 |
data/mdn-content/files/en-us/mozilla/add-ons/webextensions/api/bookmarks | data/mdn-content/files/en-us/mozilla/add-ons/webextensions/api/bookmarks/create/index.md | ---
title: bookmarks.create()
slug: Mozilla/Add-ons/WebExtensions/API/bookmarks/create
page-type: webextension-api-function
browser-compat: webextensions.api.bookmarks.create
---
{{AddonSidebar}}
Creates a bookmark or folder as a child of the {{WebExtAPIRef("bookmarks.BookmarkTreeNode", "BookmarkTreeNode")}} with the... | 0 |
data/mdn-content/files/en-us/mozilla/add-ons/webextensions/api/bookmarks | data/mdn-content/files/en-us/mozilla/add-ons/webextensions/api/bookmarks/onimportbegan/index.md | ---
title: bookmarks.onImportBegan
slug: Mozilla/Add-ons/WebExtensions/API/bookmarks/onImportBegan
page-type: webextension-api-event
browser-compat: webextensions.api.bookmarks.onImportBegan
---
{{AddonSidebar}}
Fired when the browser has started importing a set of bookmarks.
While a set of bookmarks is being import... | 0 |
data/mdn-content/files/en-us/mozilla/add-ons/webextensions/api/bookmarks | data/mdn-content/files/en-us/mozilla/add-ons/webextensions/api/bookmarks/bookmarktreenode/index.md | ---
title: bookmarks.BookmarkTreeNode
slug: Mozilla/Add-ons/WebExtensions/API/bookmarks/BookmarkTreeNode
page-type: webextension-api-type
browser-compat: webextensions.api.bookmarks.BookmarkTreeNode
---
{{AddonSidebar}}
An object of type `bookmarks.BookmarkTreeNode` represents a node in the bookmark tree, where each ... | 0 |
data/mdn-content/files/en-us/mozilla/add-ons/webextensions/api/bookmarks | data/mdn-content/files/en-us/mozilla/add-ons/webextensions/api/bookmarks/getsubtree/index.md | ---
title: bookmarks.getSubTree()
slug: Mozilla/Add-ons/WebExtensions/API/bookmarks/getSubTree
page-type: webextension-api-function
browser-compat: webextensions.api.bookmarks.getSubTree
---
{{AddonSidebar}}
The **`bookmarks.getSubTree()`** method asynchronously retrieves a {{WebExtAPIRef("bookmarks.BookmarkTreeNode"... | 0 |
data/mdn-content/files/en-us/mozilla/add-ons/webextensions/api/bookmarks | data/mdn-content/files/en-us/mozilla/add-ons/webextensions/api/bookmarks/gettree/index.md | ---
title: bookmarks.getTree()
slug: Mozilla/Add-ons/WebExtensions/API/bookmarks/getTree
page-type: webextension-api-function
browser-compat: webextensions.api.bookmarks.getTree
---
{{AddonSidebar}}
**`bookmarks.getTree()`** returns an array containing the root of the bookmarks tree as a {{WebExtAPIRef("bookmarks.Boo... | 0 |
data/mdn-content/files/en-us/mozilla/add-ons/webextensions/api/bookmarks | data/mdn-content/files/en-us/mozilla/add-ons/webextensions/api/bookmarks/search/index.md | ---
title: bookmarks.search()
slug: Mozilla/Add-ons/WebExtensions/API/bookmarks/search
page-type: webextension-api-function
browser-compat: webextensions.api.bookmarks.search
---
{{AddonSidebar}}
The **`bookmarks.search()`** function searches for bookmark tree nodes matching the given query.
This function throws an ... | 0 |
data/mdn-content/files/en-us/mozilla/add-ons/webextensions/api/bookmarks | data/mdn-content/files/en-us/mozilla/add-ons/webextensions/api/bookmarks/onimportended/index.md | ---
title: bookmarks.onImportEnded
slug: Mozilla/Add-ons/WebExtensions/API/bookmarks/onImportEnded
page-type: webextension-api-event
browser-compat: webextensions.api.bookmarks.onImportEnded
---
{{AddonSidebar}}
Fired when the browser has finished importing a set of bookmarks.
See {{WebExtAPIRef("bookmarks.onImportB... | 0 |
data/mdn-content/files/en-us/mozilla/add-ons/webextensions/api/bookmarks | data/mdn-content/files/en-us/mozilla/add-ons/webextensions/api/bookmarks/getrecent/index.md | ---
title: bookmarks.getRecent()
slug: Mozilla/Add-ons/WebExtensions/API/bookmarks/getRecent
page-type: webextension-api-function
browser-compat: webextensions.api.bookmarks.getRecent
---
{{AddonSidebar}}
The `bookmarks.getRecent()` method retrieves a specified number of the most recently added bookmarks as an array ... | 0 |
data/mdn-content/files/en-us/mozilla/add-ons/webextensions/api/bookmarks | data/mdn-content/files/en-us/mozilla/add-ons/webextensions/api/bookmarks/oncreated/index.md | ---
title: bookmarks.onCreated
slug: Mozilla/Add-ons/WebExtensions/API/bookmarks/onCreated
page-type: webextension-api-event
browser-compat: webextensions.api.bookmarks.onCreated
---
{{AddonSidebar}}
Fired when a bookmark item (a bookmark or a folder) is created.
## Syntax
```js-nolint
browser.bookmarks.onCreated.a... | 0 |
data/mdn-content/files/en-us/mozilla/add-ons/webextensions/api/bookmarks | data/mdn-content/files/en-us/mozilla/add-ons/webextensions/api/bookmarks/update/index.md | ---
title: bookmarks.update()
slug: Mozilla/Add-ons/WebExtensions/API/bookmarks/update
page-type: webextension-api-function
browser-compat: webextensions.api.bookmarks.update
---
{{AddonSidebar}}
**`bookmarks.update()`** updates the title and/or URL of a bookmark, or the name of a bookmark folder.
> **Warning:** If ... | 0 |
data/mdn-content/files/en-us/mozilla/add-ons/webextensions/api/bookmarks | data/mdn-content/files/en-us/mozilla/add-ons/webextensions/api/bookmarks/getchildren/index.md | ---
title: bookmarks.getChildren()
slug: Mozilla/Add-ons/WebExtensions/API/bookmarks/getChildren
page-type: webextension-api-function
browser-compat: webextensions.api.bookmarks.getChildren
---
{{AddonSidebar}}
**`bookmarks.getChildren()`** retrieves all the immediate children of a bookmark folder, identified as a {{... | 0 |
data/mdn-content/files/en-us/mozilla/add-ons/webextensions/api/bookmarks | data/mdn-content/files/en-us/mozilla/add-ons/webextensions/api/bookmarks/createdetails/index.md | ---
title: bookmarks.CreateDetails
slug: Mozilla/Add-ons/WebExtensions/API/bookmarks/CreateDetails
page-type: webextension-api-type
browser-compat: webextensions.api.bookmarks.CreateDetails
---
{{AddonSidebar}}
The `CreateDetails` type is used to describe the properties of a new, bookmark, bookmark folder, or separat... | 0 |
data/mdn-content/files/en-us/mozilla/add-ons/webextensions/api/bookmarks | data/mdn-content/files/en-us/mozilla/add-ons/webextensions/api/bookmarks/bookmarktreenodeunmodifiable/index.md | ---
title: bookmarks.BookmarkTreeNodeUnmodifiable
slug: Mozilla/Add-ons/WebExtensions/API/bookmarks/BookmarkTreeNodeUnmodifiable
page-type: webextension-api-type
browser-compat: webextensions.api.bookmarks.BookmarkTreeNodeUnmodifiable
---
{{AddonSidebar}}
The **`bookmarks.BookmarkTreeNodeUnmodifiable`** type is used ... | 0 |
data/mdn-content/files/en-us/mozilla/add-ons/webextensions/api/bookmarks | data/mdn-content/files/en-us/mozilla/add-ons/webextensions/api/bookmarks/onremoved/index.md | ---
title: bookmarks.onRemoved
slug: Mozilla/Add-ons/WebExtensions/API/bookmarks/onRemoved
page-type: webextension-api-event
browser-compat: webextensions.api.bookmarks.onRemoved
---
{{AddonSidebar}}
Fired when a bookmark or folder is removed. When a folder is removed recursively, a single notification is fired for t... | 0 |
data/mdn-content/files/en-us/mozilla/add-ons/webextensions/api/bookmarks | data/mdn-content/files/en-us/mozilla/add-ons/webextensions/api/bookmarks/bookmarktreenodetype/index.md | ---
title: bookmarks.BookmarkTreeNodeType
slug: Mozilla/Add-ons/WebExtensions/API/bookmarks/BookmarkTreeNodeType
page-type: webextension-api-type
browser-compat: webextensions.api.bookmarks.BookmarkTreeNodeType
---
{{AddonSidebar}}
The **`bookmarks.BookmarkTreeNodeType`** type is used to describe whether a node in th... | 0 |
data/mdn-content/files/en-us/mozilla/add-ons/webextensions/api/bookmarks | data/mdn-content/files/en-us/mozilla/add-ons/webextensions/api/bookmarks/removetree/index.md | ---
title: bookmarks.removeTree()
slug: Mozilla/Add-ons/WebExtensions/API/bookmarks/removeTree
page-type: webextension-api-function
browser-compat: webextensions.api.bookmarks.removeTree
---
{{AddonSidebar}}
The **`bookmarks.removeTree()`** method recursively removes a bookmark folder and all of its contents.
> **Wa... | 0 |
data/mdn-content/files/en-us/mozilla/add-ons/webextensions/api/bookmarks | data/mdn-content/files/en-us/mozilla/add-ons/webextensions/api/bookmarks/onchildrenreordered/index.md | ---
title: bookmarks.onChildrenReordered
slug: Mozilla/Add-ons/WebExtensions/API/bookmarks/onChildrenReordered
page-type: webextension-api-event
browser-compat: webextensions.api.bookmarks.onChildrenReordered
---
{{AddonSidebar}}
Fired when the children of a folder have changed their order due to the order being sort... | 0 |
data/mdn-content/files/en-us/mozilla/add-ons/webextensions/api/bookmarks | data/mdn-content/files/en-us/mozilla/add-ons/webextensions/api/bookmarks/move/index.md | ---
title: bookmarks.move()
slug: Mozilla/Add-ons/WebExtensions/API/bookmarks/move
page-type: webextension-api-function
browser-compat: webextensions.api.bookmarks.move
---
{{AddonSidebar}}
The **`bookmarks.move()`** method moves the specified {{WebExtAPIRef("bookmarks.BookmarkTreeNode", "BookmarkTreeNode")}} to the ... | 0 |
data/mdn-content/files/en-us/mozilla/add-ons/webextensions/api/bookmarks | data/mdn-content/files/en-us/mozilla/add-ons/webextensions/api/bookmarks/onmoved/index.md | ---
title: bookmarks.onMoved
slug: Mozilla/Add-ons/WebExtensions/API/bookmarks/onMoved
page-type: webextension-api-event
browser-compat: webextensions.api.bookmarks.onMoved
---
{{AddonSidebar}}
Fired when a bookmark or folder is moved to a different parent folder or position within a folder.
> **Note:** If you're mo... | 0 |
data/mdn-content/files/en-us/mozilla/add-ons/webextensions/api | data/mdn-content/files/en-us/mozilla/add-ons/webextensions/api/sidebaraction/index.md | ---
title: sidebarAction
slug: Mozilla/Add-ons/WebExtensions/API/sidebarAction
page-type: webextension-api
browser-compat: webextensions.api.sidebarAction
---
{{AddonSidebar}}
Gets and sets properties of an extension's sidebar.
A [sidebar](/en-US/docs/Mozilla/Add-ons/WebExtensions/user_interface/Sidebars) is a pane ... | 0 |
data/mdn-content/files/en-us/mozilla/add-ons/webextensions/api/sidebaraction | data/mdn-content/files/en-us/mozilla/add-ons/webextensions/api/sidebaraction/settitle/index.md | ---
title: sidebarAction.setTitle()
slug: Mozilla/Add-ons/WebExtensions/API/sidebarAction/setTitle
page-type: webextension-api-function
browser-compat: webextensions.api.sidebarAction.setTitle
---
{{AddonSidebar}}
Sets the sidebar's title. The title is displayed anywhere the browser lists available sidebars. For exam... | 0 |
data/mdn-content/files/en-us/mozilla/add-ons/webextensions/api/sidebaraction | data/mdn-content/files/en-us/mozilla/add-ons/webextensions/api/sidebaraction/setpanel/index.md | ---
title: sidebarAction.setPanel()
slug: Mozilla/Add-ons/WebExtensions/API/sidebarAction/setPanel
page-type: webextension-api-function
browser-compat: webextensions.api.sidebarAction.setPanel
---
{{AddonSidebar}}
Sets the sidebar's panel: that is, the HTML document that defines the content of this sidebar.
## Types... | 0 |
data/mdn-content/files/en-us/mozilla/add-ons/webextensions/api/sidebaraction | data/mdn-content/files/en-us/mozilla/add-ons/webextensions/api/sidebaraction/seticon/index.md | ---
title: sidebarAction.setIcon()
slug: Mozilla/Add-ons/WebExtensions/API/sidebarAction/setIcon
page-type: webextension-api-function
browser-compat: webextensions.api.sidebarAction.setIcon
---
{{AddonSidebar}}
Sets the icon for the sidebar.
You can specify a single icon as either the path to an image file or a {{We... | 0 |
data/mdn-content/files/en-us/mozilla/add-ons/webextensions/api/sidebaraction | data/mdn-content/files/en-us/mozilla/add-ons/webextensions/api/sidebaraction/isopen/index.md | ---
title: sidebarAction.isOpen()
slug: Mozilla/Add-ons/WebExtensions/API/sidebarAction/isOpen
page-type: webextension-api-function
browser-compat: webextensions.api.sidebarAction.isOpen
---
{{AddonSidebar}}
Returns `true` if the extension's sidebar is open in a given window.
This function accepts a `windowId` as a ... | 0 |
data/mdn-content/files/en-us/mozilla/add-ons/webextensions/api/sidebaraction | data/mdn-content/files/en-us/mozilla/add-ons/webextensions/api/sidebaraction/getpanel/index.md | ---
title: sidebarAction.getPanel()
slug: Mozilla/Add-ons/WebExtensions/API/sidebarAction/getPanel
page-type: webextension-api-function
browser-compat: webextensions.api.sidebarAction.getPanel
---
{{AddonSidebar}}
Gets a URL to the HTML document that defines the sidebar's contents.
This is an asynchronous function t... | 0 |
data/mdn-content/files/en-us/mozilla/add-ons/webextensions/api/sidebaraction | data/mdn-content/files/en-us/mozilla/add-ons/webextensions/api/sidebaraction/gettitle/index.md | ---
title: sidebarAction.getTitle()
slug: Mozilla/Add-ons/WebExtensions/API/sidebarAction/getTitle
page-type: webextension-api-function
browser-compat: webextensions.api.sidebarAction.getTitle
---
{{AddonSidebar}}
Gets the sidebar's title.
Just as you can set the title on a per-tab basis using {{WebExtAPIRef("sideba... | 0 |
data/mdn-content/files/en-us/mozilla/add-ons/webextensions/api/sidebaraction | data/mdn-content/files/en-us/mozilla/add-ons/webextensions/api/sidebaraction/toggle/index.md | ---
title: sidebarAction.toggle()
slug: Mozilla/Add-ons/WebExtensions/API/sidebarAction/toggle
page-type: webextension-api-function
browser-compat: webextensions.api.sidebarAction.toggle
---
{{AddonSidebar}}
Toggles the visibility of the sidebar in the active window, if the sidebar belongs to the extension.
You can ... | 0 |
data/mdn-content/files/en-us/mozilla/add-ons/webextensions/api/sidebaraction | data/mdn-content/files/en-us/mozilla/add-ons/webextensions/api/sidebaraction/imagedatatype/index.md | ---
title: sidebarAction.ImageDataType
slug: Mozilla/Add-ons/WebExtensions/API/sidebarAction/ImageDataType
page-type: webextension-api-type
browser-compat: webextensions.api.sidebarAction.ImageDataType
---
{{AddonSidebar}}
Pixel data for an image. Must be an [`ImageData`](/en-US/docs/Web/API/ImageData) object (for ex... | 0 |
data/mdn-content/files/en-us/mozilla/add-ons/webextensions/api/sidebaraction | data/mdn-content/files/en-us/mozilla/add-ons/webextensions/api/sidebaraction/close/index.md | ---
title: sidebarAction.close()
slug: Mozilla/Add-ons/WebExtensions/API/sidebarAction/close
page-type: webextension-api-function
browser-compat: webextensions.api.sidebarAction.close
---
{{AddonSidebar}}
Closes the sidebar in the active window, if it is the extension's own sidebar.
You can only call this function f... | 0 |
data/mdn-content/files/en-us/mozilla/add-ons/webextensions/api/sidebaraction | data/mdn-content/files/en-us/mozilla/add-ons/webextensions/api/sidebaraction/open/index.md | ---
title: sidebarAction.open()
slug: Mozilla/Add-ons/WebExtensions/API/sidebarAction/open
page-type: webextension-api-function
browser-compat: webextensions.api.sidebarAction.open
---
{{AddonSidebar}}
Open the sidebar in the active window.
You can only call this function from inside the handler for a [user action](... | 0 |
data/mdn-content/files/en-us/mozilla/add-ons/webextensions/api | data/mdn-content/files/en-us/mozilla/add-ons/webextensions/api/commands/index.md | ---
title: commands
slug: Mozilla/Add-ons/WebExtensions/API/commands
page-type: webextension-api
browser-compat: webextensions.api.commands
---
{{AddonSidebar}}
Listen for the user executing commands that you have registered using the [`commands` manifest.json key](/en-US/docs/Mozilla/Add-ons/WebExtensions/manifest.j... | 0 |
data/mdn-content/files/en-us/mozilla/add-ons/webextensions/api/commands | data/mdn-content/files/en-us/mozilla/add-ons/webextensions/api/commands/onchanged/index.md | ---
title: onChanged
slug: Mozilla/Add-ons/WebExtensions/API/commands/onChanged
page-type: webextension-api-event
browser-compat: webextensions.api.commands.onChanged
---
{{AddonSidebar}}
Fired when the keyboard shortcut for a command is changed.
The listener is passed an object containing the name of the command, i... | 0 |
data/mdn-content/files/en-us/mozilla/add-ons/webextensions/api/commands | data/mdn-content/files/en-us/mozilla/add-ons/webextensions/api/commands/update/index.md | ---
title: commands.update()
slug: Mozilla/Add-ons/WebExtensions/API/commands/update
page-type: webextension-api-function
browser-compat: webextensions.api.commands.update
---
{{AddonSidebar}}
Change the description or keyboard shortcut for the given command.
This is an asynchronous function that returns a [`Promise... | 0 |
data/mdn-content/files/en-us/mozilla/add-ons/webextensions/api/commands | data/mdn-content/files/en-us/mozilla/add-ons/webextensions/api/commands/reset/index.md | ---
title: commands.reset()
slug: Mozilla/Add-ons/WebExtensions/API/commands/reset
page-type: webextension-api-function
browser-compat: webextensions.api.commands.reset
---
{{AddonSidebar}}
Resets the given command's description and keyboard shortcut to the values given in the extension's [`commands` manifest.json ke... | 0 |
data/mdn-content/files/en-us/mozilla/add-ons/webextensions/api/commands | data/mdn-content/files/en-us/mozilla/add-ons/webextensions/api/commands/getall/index.md | ---
title: getAll()
slug: Mozilla/Add-ons/WebExtensions/API/commands/getAll
page-type: webextension-api-function
browser-compat: webextensions.api.commands.getAll
---
{{AddonSidebar}}
Gets all commands for the extension that you have registered using the [`commands` manifest.json key](/en-US/docs/Mozilla/Add-ons/WebE... | 0 |
data/mdn-content/files/en-us/mozilla/add-ons/webextensions/api/commands | data/mdn-content/files/en-us/mozilla/add-ons/webextensions/api/commands/oncommand/index.md | ---
title: onCommand
slug: Mozilla/Add-ons/WebExtensions/API/commands/onCommand
page-type: webextension-api-event
browser-compat: webextensions.api.commands.onCommand
---
{{AddonSidebar}}
Fired when a command is executed using its associated keyboard shortcut.
The listener is passed the command's name. This matches ... | 0 |
data/mdn-content/files/en-us/mozilla/add-ons/webextensions/api/commands | data/mdn-content/files/en-us/mozilla/add-ons/webextensions/api/commands/command/index.md | ---
title: Command
slug: Mozilla/Add-ons/WebExtensions/API/commands/Command
page-type: webextension-api-type
browser-compat: webextensions.api.commands.Command
---
{{AddonSidebar}}
Information about a command. This contains the information specified for the command in the [`commands` manifest.json key](/en-US/docs/Mo... | 0 |
data/mdn-content/files/en-us/mozilla/add-ons/webextensions/api | data/mdn-content/files/en-us/mozilla/add-ons/webextensions/api/pageaction/index.md | ---
title: pageAction
slug: Mozilla/Add-ons/WebExtensions/API/pageAction
page-type: webextension-api
browser-compat: webextensions.api.pageAction
---
{{AddonSidebar}}
The API to control [address bar button](/en-US/docs/Mozilla/Add-ons/WebExtensions/user_interface/Page_actions).

slug: Mozilla/Add-ons/WebExtensions/API/pageAction/openPopup
page-type: webextension-api-function
browser-compat: webextensions.api.pageAction.openPopup
---
{{AddonSidebar}}
Open the page action's popup.
You can only call this function from inside the handler for a [user action](/en... | 0 |
data/mdn-content/files/en-us/mozilla/add-ons/webextensions/api/pageaction | data/mdn-content/files/en-us/mozilla/add-ons/webextensions/api/pageaction/setpopup/index.md | ---
title: pageAction.setPopup()
slug: Mozilla/Add-ons/WebExtensions/API/pageAction/setPopup
page-type: webextension-api-function
browser-compat: webextensions.api.pageAction.setPopup
---
{{AddonSidebar}}
Sets the HTML document to be opened as a popup when the user clicks on the page action's icon.
## Syntax
```js-... | 0 |
data/mdn-content/files/en-us/mozilla/add-ons/webextensions/api/pageaction | data/mdn-content/files/en-us/mozilla/add-ons/webextensions/api/pageaction/show/index.md | ---
title: pageAction.show()
slug: Mozilla/Add-ons/WebExtensions/API/pageAction/show
page-type: webextension-api-function
browser-compat: webextensions.api.pageAction.show
---
{{AddonSidebar}}
Shows the {{WebExtAPIRef("pageAction")}} for a given {{WebExtAPIRef("tabs/Tab", "tab")}}. The page action is shown whenever t... | 0 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.