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/tabs | data/mdn-content/files/en-us/mozilla/add-ons/webextensions/api/tabs/reload/index.md | ---
title: tabs.reload()
slug: Mozilla/Add-ons/WebExtensions/API/tabs/reload
page-type: webextension-api-function
browser-compat: webextensions.api.tabs.reload
---
{{AddonSidebar}}
Reload a tab, optionally bypassing the local web cache.
This is an asynchronous function that returns a [`Promise`](/en-US/docs/Web/Java... | 0 |
data/mdn-content/files/en-us/mozilla/add-ons/webextensions/api/tabs | data/mdn-content/files/en-us/mozilla/add-ons/webextensions/api/tabs/goforward/index.md | ---
title: tabs.goForward()
slug: Mozilla/Add-ons/WebExtensions/API/tabs/goForward
page-type: webextension-api-function
browser-compat: webextensions.api.tabs.goForward
---
{{AddonSidebar}}
Navigate to the next page in tab's history, if available.
This is an asynchronous function that returns a [`Promise`](/en-US/do... | 0 |
data/mdn-content/files/en-us/mozilla/add-ons/webextensions/api/tabs | data/mdn-content/files/en-us/mozilla/add-ons/webextensions/api/tabs/getselected/index.md | ---
title: tabs.getSelected()
slug: Mozilla/Add-ons/WebExtensions/API/tabs/getSelected
page-type: webextension-api-function
status:
- deprecated
browser-compat: webextensions.api.tabs.getSelected
---
{{AddonSidebar}}
> **Warning:** This method has been deprecated. Use {{WebExtAPIRef("tabs.query", "tabs.query({activ... | 0 |
data/mdn-content/files/en-us/mozilla/add-ons/webextensions/api/tabs | data/mdn-content/files/en-us/mozilla/add-ons/webextensions/api/tabs/getzoom/index.md | ---
title: tabs.getZoom()
slug: Mozilla/Add-ons/WebExtensions/API/tabs/getZoom
page-type: webextension-api-function
browser-compat: webextensions.api.tabs.getZoom
---
{{AddonSidebar}}
Gets the current zoom factor for the specified tab.
This is an asynchronous function that returns a [`Promise`](/en-US/docs/Web/JavaS... | 0 |
data/mdn-content/files/en-us/mozilla/add-ons/webextensions/api/tabs | data/mdn-content/files/en-us/mozilla/add-ons/webextensions/api/tabs/setzoomsettings/index.md | ---
title: tabs.setZoomSettings()
slug: Mozilla/Add-ons/WebExtensions/API/tabs/setZoomSettings
page-type: webextension-api-function
browser-compat: webextensions.api.tabs.setZoomSettings
---
{{AddonSidebar}}
Sets zoom settings for the specified tab. These settings are reset to the default settings upon navigating the... | 0 |
data/mdn-content/files/en-us/mozilla/add-ons/webextensions/api/tabs | data/mdn-content/files/en-us/mozilla/add-ons/webextensions/api/tabs/zoomsettingsscope/index.md | ---
title: tabs.ZoomSettingsScope
slug: Mozilla/Add-ons/WebExtensions/API/tabs/ZoomSettingsScope
page-type: webextension-api-type
browser-compat: webextensions.api.tabs.ZoomSettingsScope
---
{{AddonSidebar}}
Defines whether zoom changes will persist for the page's origin, or only take effect in this tab. This default... | 0 |
data/mdn-content/files/en-us/mozilla/add-ons/webextensions/api/tabs | data/mdn-content/files/en-us/mozilla/add-ons/webextensions/api/tabs/onzoomchange/index.md | ---
title: tabs.onZoomChange
slug: Mozilla/Add-ons/WebExtensions/API/tabs/onZoomChange
page-type: webextension-api-event
browser-compat: webextensions.api.tabs.onZoomChange
---
{{AddonSidebar}}
Fired when a tab is zoomed.
## Syntax
```js-nolint
browser.tabs.onZoomChange.addListener(listener)
browser.tabs.onZoomChan... | 0 |
data/mdn-content/files/en-us/mozilla/add-ons/webextensions/api/tabs | data/mdn-content/files/en-us/mozilla/add-ons/webextensions/api/tabs/tab/index.md | ---
title: tabs.Tab
slug: Mozilla/Add-ons/WebExtensions/API/tabs/Tab
page-type: webextension-api-type
browser-compat: webextensions.api.tabs.Tab
---
{{AddonSidebar}}
The type **`tabs.Tab`** contains information about a tab. This provides access to information about what content is in the tab, how large the content is... | 0 |
data/mdn-content/files/en-us/mozilla/add-ons/webextensions/api/tabs | data/mdn-content/files/en-us/mozilla/add-ons/webextensions/api/tabs/hide/index.md | ---
title: tabs.hide()
slug: Mozilla/Add-ons/WebExtensions/API/tabs/hide
page-type: webextension-api-function
browser-compat: webextensions.api.tabs.hide
---
{{AddonSidebar}}
Hides one or more tabs.
Hidden tabs are no longer visible in the browser's tabstrip. Hidden tabs are not automatically [discarded](/en-US/docs... | 0 |
data/mdn-content/files/en-us/mozilla/add-ons/webextensions/api/tabs | data/mdn-content/files/en-us/mozilla/add-ons/webextensions/api/tabs/printpreview/index.md | ---
title: tabs.printPreview()
slug: Mozilla/Add-ons/WebExtensions/API/tabs/printPreview
page-type: webextension-api-function
browser-compat: webextensions.api.tabs.printPreview
---
{{AddonSidebar}}
Opens print preview for the active tab.
This is an asynchronous function that returns a [`Promise`](/en-US/docs/Web/Ja... | 0 |
data/mdn-content/files/en-us/mozilla/add-ons/webextensions/api/tabs | data/mdn-content/files/en-us/mozilla/add-ons/webextensions/api/tabs/mutedinforeason/index.md | ---
title: tabs.MutedInfoReason
slug: Mozilla/Add-ons/WebExtensions/API/tabs/MutedInfoReason
page-type: webextension-api-type
browser-compat: webextensions.api.tabs.MutedInfoReason
---
{{AddonSidebar}}
Specifies the reason a tab was muted or unmuted.
## Type
Values of this type are strings. Possible values are:
- ... | 0 |
data/mdn-content/files/en-us/mozilla/add-ons/webextensions/api/tabs | data/mdn-content/files/en-us/mozilla/add-ons/webextensions/api/tabs/onhighlighted/index.md | ---
title: tabs.onHighlighted
slug: Mozilla/Add-ons/WebExtensions/API/tabs/onHighlighted
page-type: webextension-api-event
browser-compat: webextensions.api.tabs.onHighlighted
---
{{AddonSidebar}}
Fired when the set of highlighted tabs in a window changes.
Note that before version 63, Firefox didn't have the concept... | 0 |
data/mdn-content/files/en-us/mozilla/add-ons/webextensions/api/tabs | data/mdn-content/files/en-us/mozilla/add-ons/webextensions/api/tabs/sendmessage/index.md | ---
title: tabs.sendMessage()
slug: Mozilla/Add-ons/WebExtensions/API/tabs/sendMessage
page-type: webextension-api-function
browser-compat: webextensions.api.tabs.sendMessage
---
{{AddonSidebar}}
Sends a single message from the extension's background scripts (or other privileged scripts, such as popup scripts or opti... | 0 |
data/mdn-content/files/en-us/mozilla/add-ons/webextensions/api/tabs | data/mdn-content/files/en-us/mozilla/add-ons/webextensions/api/tabs/oncreated/index.md | ---
title: tabs.onCreated
slug: Mozilla/Add-ons/WebExtensions/API/tabs/onCreated
page-type: webextension-api-event
browser-compat: webextensions.api.tabs.onCreated
---
{{AddonSidebar}}
Fired when a tab is created.
Note that the tab's URL may not be given its final value at the time this event fired. In particular, F... | 0 |
data/mdn-content/files/en-us/mozilla/add-ons/webextensions/api/tabs | data/mdn-content/files/en-us/mozilla/add-ons/webextensions/api/tabs/print/index.md | ---
title: tabs.print()
slug: Mozilla/Add-ons/WebExtensions/API/tabs/print
page-type: webextension-api-function
browser-compat: webextensions.api.tabs.print
---
{{AddonSidebar}}
Call this function to print the contents of the active tab. If this function is called, the user will be presented with the print dialog fro... | 0 |
data/mdn-content/files/en-us/mozilla/add-ons/webextensions/api/tabs | data/mdn-content/files/en-us/mozilla/add-ons/webextensions/api/tabs/update/index.md | ---
title: tabs.update()
slug: Mozilla/Add-ons/WebExtensions/API/tabs/update
page-type: webextension-api-function
browser-compat: webextensions.api.tabs.update
---
{{AddonSidebar}}
Navigate the tab to a new URL, or modify other properties of the tab.
To use this function, pass the ID of the tab to update, and an `up... | 0 |
data/mdn-content/files/en-us/mozilla/add-ons/webextensions/api/tabs | data/mdn-content/files/en-us/mozilla/add-ons/webextensions/api/tabs/getcurrent/index.md | ---
title: tabs.getCurrent()
slug: Mozilla/Add-ons/WebExtensions/API/tabs/getCurrent
page-type: webextension-api-function
browser-compat: webextensions.api.tabs.getCurrent
---
{{AddonSidebar}}
Get a {{WebExtAPIRef("tabs.Tab")}} containing information about the tab that this script is running in.
> **Note:** This fun... | 0 |
data/mdn-content/files/en-us/mozilla/add-ons/webextensions/api/tabs | data/mdn-content/files/en-us/mozilla/add-ons/webextensions/api/tabs/tab_id_none/index.md | ---
title: tabs.TAB_ID_NONE
slug: Mozilla/Add-ons/WebExtensions/API/tabs/TAB_ID_NONE
page-type: webextension-api-property
browser-compat: webextensions.api.tabs.TAB_ID_NONE
---
{{AddonSidebar}}
A special ID value given to tabs that are not browser tabs (for example, tabs in devtools windows).
## Browser compatibilit... | 0 |
data/mdn-content/files/en-us/mozilla/add-ons/webextensions/api/tabs | data/mdn-content/files/en-us/mozilla/add-ons/webextensions/api/tabs/zoomsettings/index.md | ---
title: tabs.ZoomSettings
slug: Mozilla/Add-ons/WebExtensions/API/tabs/ZoomSettings
page-type: webextension-api-type
browser-compat: webextensions.api.tabs.ZoomSettings
---
{{AddonSidebar}}
Defines zoom settings for a tab: {{WebExtAPIRef("tabs.ZoomSettingsMode", "mode")}}, {{WebExtAPIRef("tabs.ZoomSettingsScope", ... | 0 |
data/mdn-content/files/en-us/mozilla/add-ons/webextensions/api/tabs | data/mdn-content/files/en-us/mozilla/add-ons/webextensions/api/tabs/saveaspdf/index.md | ---
title: tabs.saveAsPDF()
slug: Mozilla/Add-ons/WebExtensions/API/tabs/saveAsPDF
page-type: webextension-api-function
browser-compat: webextensions.api.tabs.saveAsPDF
---
{{AddonSidebar}}
Saves the current page as a PDF file. This will open a dialog, supplied by the underlying operating system, asking the user wher... | 0 |
data/mdn-content/files/en-us/mozilla/add-ons/webextensions/api/tabs | data/mdn-content/files/en-us/mozilla/add-ons/webextensions/api/tabs/onupdated/index.md | ---
title: tabs.onUpdated
slug: Mozilla/Add-ons/WebExtensions/API/tabs/onUpdated
page-type: webextension-api-event
browser-compat: webextensions.api.tabs.onUpdated
---
Fired when a tab is updated.
When the user navigates to a new URL in a tab, this typically generates several `onUpdated` events as various properties ... | 0 |
data/mdn-content/files/en-us/mozilla/add-ons/webextensions/api/tabs | data/mdn-content/files/en-us/mozilla/add-ons/webextensions/api/tabs/onhighlightchanged/index.md | ---
title: tabs.onHighlightChanged
slug: Mozilla/Add-ons/WebExtensions/API/tabs/onHighlightChanged
page-type: webextension-api-event
status:
- deprecated
browser-compat: webextensions.api.tabs.onHighlightChanged
---
{{AddonSidebar}}
> **Warning:** This event is deprecated. Use {{WebExtAPIRef("tabs.onHighlighted")}}... | 0 |
data/mdn-content/files/en-us/mozilla/add-ons/webextensions/api/tabs | data/mdn-content/files/en-us/mozilla/add-ons/webextensions/api/tabs/duplicate/index.md | ---
title: tabs.duplicate()
slug: Mozilla/Add-ons/WebExtensions/API/tabs/duplicate
page-type: webextension-api-function
browser-compat: webextensions.api.tabs.duplicate
---
{{AddonSidebar}}
Duplicates a tab, given its ID.
This is an asynchronous function that returns a [`Promise`](/en-US/docs/Web/JavaScript/Referenc... | 0 |
data/mdn-content/files/en-us/mozilla/add-ons/webextensions/api/tabs | data/mdn-content/files/en-us/mozilla/add-ons/webextensions/api/tabs/setzoom/index.md | ---
title: tabs.setZoom()
slug: Mozilla/Add-ons/WebExtensions/API/tabs/setZoom
page-type: webextension-api-function
browser-compat: webextensions.api.tabs.setZoom
---
{{AddonSidebar}}
Zooms the specified tab.
This is an asynchronous function that returns a [`Promise`](/en-US/docs/Web/JavaScript/Reference/Global_Obje... | 0 |
data/mdn-content/files/en-us/mozilla/add-ons/webextensions/api/tabs | data/mdn-content/files/en-us/mozilla/add-ons/webextensions/api/tabs/executescript/index.md | ---
title: tabs.executeScript()
slug: Mozilla/Add-ons/WebExtensions/API/tabs/executeScript
page-type: webextension-api-function
browser-compat: webextensions.api.tabs.executeScript
---
{{AddonSidebar}}
Injects JavaScript code into a page.
> **Note:** When using Manifest V3 or higher, use {{WebExtAPIRef("scripting.ex... | 0 |
data/mdn-content/files/en-us/mozilla/add-ons/webextensions/api/tabs | data/mdn-content/files/en-us/mozilla/add-ons/webextensions/api/tabs/getallinwindow/index.md | ---
title: tabs.getAllInWindow()
slug: Mozilla/Add-ons/WebExtensions/API/tabs/getAllInWindow
page-type: webextension-api-function
status:
- deprecated
browser-compat: webextensions.api.tabs.getAllInWindow
---
{{AddonSidebar}}
> **Warning:** This method has been deprecated. Use {{WebExtAPIRef("tabs.query", "tabs.que... | 0 |
data/mdn-content/files/en-us/mozilla/add-ons/webextensions/api/tabs | data/mdn-content/files/en-us/mozilla/add-ons/webextensions/api/tabs/mutedinfo/index.md | ---
title: tabs.MutedInfo
slug: Mozilla/Add-ons/WebExtensions/API/tabs/MutedInfo
page-type: webextension-api-type
browser-compat: webextensions.api.tabs.MutedInfo
---
{{AddonSidebar}}
This object contains a boolean indicating whether the tab is muted, and the reason for the last state change.
## Type
Values of this... | 0 |
data/mdn-content/files/en-us/mozilla/add-ons/webextensions/api/tabs | data/mdn-content/files/en-us/mozilla/add-ons/webextensions/api/tabs/insertcss/index.md | ---
title: tabs.insertCSS()
slug: Mozilla/Add-ons/WebExtensions/API/tabs/insertCSS
page-type: webextension-api-function
browser-compat: webextensions.api.tabs.insertCSS
---
{{AddonSidebar}}
Injects CSS into a page.
> **Note:** When using Manifest V3 or higher, use {{WebExtAPIRef("scripting.insertCSS()")}} and {{WebE... | 0 |
data/mdn-content/files/en-us/mozilla/add-ons/webextensions/api/tabs | data/mdn-content/files/en-us/mozilla/add-ons/webextensions/api/tabs/onremoved/index.md | ---
title: tabs.onRemoved
slug: Mozilla/Add-ons/WebExtensions/API/tabs/onRemoved
page-type: webextension-api-event
browser-compat: webextensions.api.tabs.onRemoved
---
{{AddonSidebar}}
Fired when a tab is closed.
## Syntax
```js-nolint
browser.tabs.onRemoved.addListener(listener)
browser.tabs.onRemoved.removeListen... | 0 |
data/mdn-content/files/en-us/mozilla/add-ons/webextensions/api/tabs | data/mdn-content/files/en-us/mozilla/add-ons/webextensions/api/tabs/ondetached/index.md | ---
title: tabs.onDetached
slug: Mozilla/Add-ons/WebExtensions/API/tabs/onDetached
page-type: webextension-api-event
browser-compat: webextensions.api.tabs.onDetached
---
{{AddonSidebar}}
Fired when a tab is detached from a window, for example because it is being moved between windows.
## Syntax
```js-nolint
browse... | 0 |
data/mdn-content/files/en-us/mozilla/add-ons/webextensions/api/tabs | data/mdn-content/files/en-us/mozilla/add-ons/webextensions/api/tabs/goback/index.md | ---
title: tabs.goBack()
slug: Mozilla/Add-ons/WebExtensions/API/tabs/goBack
page-type: webextension-api-function
browser-compat: webextensions.api.tabs.goBack
---
{{AddonSidebar}}
Navigate to the previous page in tab's history, if available.
This is an asynchronous function that returns a [`Promise`](/en-US/docs/We... | 0 |
data/mdn-content/files/en-us/mozilla/add-ons/webextensions/api/tabs | data/mdn-content/files/en-us/mozilla/add-ons/webextensions/api/tabs/highlight/index.md | ---
title: tabs.highlight()
slug: Mozilla/Add-ons/WebExtensions/API/tabs/highlight
page-type: webextension-api-function
browser-compat: webextensions.api.tabs.highlight
---
{{AddonSidebar}}
Highlights (selects) one or more tabs. Tabs are specified using a window ID and a range of tab indices.
This is an asynchronous... | 0 |
data/mdn-content/files/en-us/mozilla/add-ons/webextensions/api/tabs | data/mdn-content/files/en-us/mozilla/add-ons/webextensions/api/tabs/pagesettings/index.md | ---
title: tabs.PageSettings
slug: Mozilla/Add-ons/WebExtensions/API/tabs/PageSettings
page-type: webextension-api-type
browser-compat: webextensions.api.tabs.PageSettings
---
{{AddonSidebar}}
The type **`tabs.PageSettings`** is used to control how a tab is rendered as a PDF by the {{WebExtAPIRef("tabs.saveAsPDF()")}... | 0 |
data/mdn-content/files/en-us/mozilla/add-ons/webextensions/api/tabs | data/mdn-content/files/en-us/mozilla/add-ons/webextensions/api/tabs/show/index.md | ---
title: tabs.show()
slug: Mozilla/Add-ons/WebExtensions/API/tabs/show
page-type: webextension-api-function
browser-compat: webextensions.api.tabs.show
---
{{AddonSidebar}}
Shows one or more tabs that were previously hidden by a call to {{WebExtAPIRef("tabs.hide")}}.
This is an asynchronous function that returns a... | 0 |
data/mdn-content/files/en-us/mozilla/add-ons/webextensions/api/tabs | data/mdn-content/files/en-us/mozilla/add-ons/webextensions/api/tabs/capturetab/index.md | ---
title: tabs.captureTab()
slug: Mozilla/Add-ons/WebExtensions/API/tabs/captureTab
page-type: webextension-api-function
browser-compat: webextensions.api.tabs.captureTab
---
{{AddonSidebar}}
Creates a data URL encoding the image of an area of the given tab. You must have the `<all_urls>` [permission](/en-US/docs/Mo... | 0 |
data/mdn-content/files/en-us/mozilla/add-ons/webextensions/api/tabs | data/mdn-content/files/en-us/mozilla/add-ons/webextensions/api/tabs/removecss/index.md | ---
title: tabs.removeCSS()
slug: Mozilla/Add-ons/WebExtensions/API/tabs/removeCSS
page-type: webextension-api-function
browser-compat: webextensions.api.tabs.removeCSS
---
{{AddonSidebar}}
Removes from a page CSS which was previously injected by a call to {{WebExtAPIRef("tabs.insertCSS()")}}.
> **Note:** When using... | 0 |
data/mdn-content/files/en-us/mozilla/add-ons/webextensions/api/tabs | data/mdn-content/files/en-us/mozilla/add-ons/webextensions/api/tabs/warmup/index.md | ---
title: tabs.warmup()
slug: Mozilla/Add-ons/WebExtensions/API/tabs/warmup
page-type: webextension-api-function
browser-compat: webextensions.api.tabs.warmup
---
{{AddonSidebar}}
To optimize system resource usage, browsers may drop GPU resources associated with tabs that the user has not accessed for a certain amou... | 0 |
data/mdn-content/files/en-us/mozilla/add-ons/webextensions/api/tabs | data/mdn-content/files/en-us/mozilla/add-ons/webextensions/api/tabs/zoomsettingsmode/index.md | ---
title: tabs.ZoomSettingsMode
slug: Mozilla/Add-ons/WebExtensions/API/tabs/ZoomSettingsMode
page-type: webextension-api-type
browser-compat: webextensions.api.tabs.ZoomSettingsMode
---
{{AddonSidebar}}
Defines how zoom changes are handled. Extensions can pass this value into {{WebExtAPIRef("tabs.setZoomSettings()"... | 0 |
data/mdn-content/files/en-us/mozilla/add-ons/webextensions/api/tabs | data/mdn-content/files/en-us/mozilla/add-ons/webextensions/api/tabs/query/index.md | ---
title: tabs.query()
slug: Mozilla/Add-ons/WebExtensions/API/tabs/query
page-type: webextension-api-function
browser-compat: webextensions.api.tabs.query
---
{{AddonSidebar}}
Gets all tabs that have the specified properties, or all tabs if no properties are specified.
This is an asynchronous function that returns... | 0 |
data/mdn-content/files/en-us/mozilla/add-ons/webextensions/api/tabs | data/mdn-content/files/en-us/mozilla/add-ons/webextensions/api/tabs/onactivated/index.md | ---
title: tabs.onActivated
slug: Mozilla/Add-ons/WebExtensions/API/tabs/onActivated
page-type: webextension-api-event
browser-compat: webextensions.api.tabs.onActivated
---
{{AddonSidebar}}
Fires when the active tab in a window changes. Note that the tab's URL may not be set at the time this event fired, but you can... | 0 |
data/mdn-content/files/en-us/mozilla/add-ons/webextensions/api/tabs | data/mdn-content/files/en-us/mozilla/add-ons/webextensions/api/tabs/getzoomsettings/index.md | ---
title: tabs.getZoomSettings()
slug: Mozilla/Add-ons/WebExtensions/API/tabs/getZoomSettings
page-type: webextension-api-function
browser-compat: webextensions.api.tabs.getZoomSettings
---
{{AddonSidebar}}
Gets the current zoom settings for a specified tab.
This is an asynchronous function that returns a [`Promise... | 0 |
data/mdn-content/files/en-us/mozilla/add-ons/webextensions/api/tabs | data/mdn-content/files/en-us/mozilla/add-ons/webextensions/api/tabs/move/index.md | ---
title: tabs.move()
slug: Mozilla/Add-ons/WebExtensions/API/tabs/move
page-type: webextension-api-function
browser-compat: webextensions.api.tabs.move
---
{{AddonSidebar}}
Moves one or more tabs to a new position in the same window or to a different window.
You can only move tabs to and from windows whose {{WebEx... | 0 |
data/mdn-content/files/en-us/mozilla/add-ons/webextensions/api/tabs | data/mdn-content/files/en-us/mozilla/add-ons/webextensions/api/tabs/onreplaced/index.md | ---
title: tabs.onReplaced
slug: Mozilla/Add-ons/WebExtensions/API/tabs/onReplaced
page-type: webextension-api-event
browser-compat: webextensions.api.tabs.onReplaced
---
{{AddonSidebar}}
Fired when a tab is replaced with another tab due to prerendering or instant.
This event may not be relevant for or supported by ... | 0 |
data/mdn-content/files/en-us/mozilla/add-ons/webextensions/api/tabs | data/mdn-content/files/en-us/mozilla/add-ons/webextensions/api/tabs/togglereadermode/index.md | ---
title: tabs.toggleReaderMode()
slug: Mozilla/Add-ons/WebExtensions/API/tabs/toggleReaderMode
page-type: webextension-api-function
browser-compat: webextensions.api.tabs.toggleReaderMode
---
{{AddonSidebar}}
Toggles Reader Mode for the given tab.
This function toggles Reader Mode for the given tab. It takes a tab... | 0 |
data/mdn-content/files/en-us/mozilla/add-ons/webextensions/api/tabs | data/mdn-content/files/en-us/mozilla/add-ons/webextensions/api/tabs/onmoved/index.md | ---
title: tabs.onMoved
slug: Mozilla/Add-ons/WebExtensions/API/tabs/onMoved
page-type: webextension-api-event
browser-compat: webextensions.api.tabs.onMoved
---
{{AddonSidebar}}
Fired when a tab is moved within a window.
Only one move event is fired, representing the tab the user directly moved. Move events are not... | 0 |
data/mdn-content/files/en-us/mozilla/add-ons/webextensions/api | data/mdn-content/files/en-us/mozilla/add-ons/webextensions/api/webnavigation/index.md | ---
title: webNavigation
slug: Mozilla/Add-ons/WebExtensions/API/webNavigation
page-type: webextension-api
browser-compat: webextensions.api.webNavigation
---
{{AddonSidebar}}
Add event listeners for the various stages of a navigation. A navigation consists of a frame in the browser transitioning from one URL to anot... | 0 |
data/mdn-content/files/en-us/mozilla/add-ons/webextensions/api/webnavigation | data/mdn-content/files/en-us/mozilla/add-ons/webextensions/api/webnavigation/getallframes/index.md | ---
title: webNavigation.getAllFrames()
slug: Mozilla/Add-ons/WebExtensions/API/webNavigation/getAllFrames
page-type: webextension-api-function
browser-compat: webextensions.api.webNavigation.getAllFrames
---
{{AddonSidebar}}
Given a tab ID, retrieves information about all the frames it contains.
This is an asynchro... | 0 |
data/mdn-content/files/en-us/mozilla/add-ons/webextensions/api/webnavigation | data/mdn-content/files/en-us/mozilla/add-ons/webextensions/api/webnavigation/oncommitted/index.md | ---
title: webNavigation.onCommitted
slug: Mozilla/Add-ons/WebExtensions/API/webNavigation/onCommitted
page-type: webextension-api-event
browser-compat: webextensions.api.webNavigation.onCommitted
---
{{AddonSidebar}}
Fired when a navigation is committed. At least part of the new document has been received from the s... | 0 |
data/mdn-content/files/en-us/mozilla/add-ons/webextensions/api/webnavigation | data/mdn-content/files/en-us/mozilla/add-ons/webextensions/api/webnavigation/transitionqualifier/index.md | ---
title: webNavigation.TransitionQualifier
slug: Mozilla/Add-ons/WebExtensions/API/webNavigation/TransitionQualifier
page-type: webextension-api-type
browser-compat: webextensions.api.webNavigation.TransitionQualifier
---
{{AddonSidebar}}
Extra information about a transition. Note that many values here are not curr... | 0 |
data/mdn-content/files/en-us/mozilla/add-ons/webextensions/api/webnavigation | data/mdn-content/files/en-us/mozilla/add-ons/webextensions/api/webnavigation/onhistorystateupdated/index.md | ---
title: webNavigation.onHistoryStateUpdated
slug: Mozilla/Add-ons/WebExtensions/API/webNavigation/onHistoryStateUpdated
page-type: webextension-api-event
browser-compat: webextensions.api.webNavigation.onHistoryStateUpdated
---
{{AddonSidebar}}
Fired when the page used the [>history API](/en-US/docs/Web/API/Histor... | 0 |
data/mdn-content/files/en-us/mozilla/add-ons/webextensions/api/webnavigation | data/mdn-content/files/en-us/mozilla/add-ons/webextensions/api/webnavigation/onreferencefragmentupdated/index.md | ---
title: webNavigation.onReferenceFragmentUpdated
slug: Mozilla/Add-ons/WebExtensions/API/webNavigation/onReferenceFragmentUpdated
page-type: webextension-api-event
browser-compat: webextensions.api.webNavigation.onReferenceFragmentUpdated
---
{{AddonSidebar}}
Fired if the [fragment identifier](https://en.wikipedia... | 0 |
data/mdn-content/files/en-us/mozilla/add-ons/webextensions/api/webnavigation | data/mdn-content/files/en-us/mozilla/add-ons/webextensions/api/webnavigation/oncreatednavigationtarget/index.md | ---
title: webNavigation.onCreatedNavigationTarget
slug: Mozilla/Add-ons/WebExtensions/API/webNavigation/onCreatedNavigationTarget
page-type: webextension-api-event
browser-compat: webextensions.api.webNavigation.onCreatedNavigationTarget
---
{{AddonSidebar}}
Fired when a new window, or a new tab in an existing windo... | 0 |
data/mdn-content/files/en-us/mozilla/add-ons/webextensions/api/webnavigation | data/mdn-content/files/en-us/mozilla/add-ons/webextensions/api/webnavigation/oncompleted/index.md | ---
title: webNavigation.onCompleted
slug: Mozilla/Add-ons/WebExtensions/API/webNavigation/onCompleted
page-type: webextension-api-event
browser-compat: webextensions.api.webNavigation.onCompleted
---
{{AddonSidebar}}
Fired when a document, including the resources it refers to, is completely loaded and initialized. T... | 0 |
data/mdn-content/files/en-us/mozilla/add-ons/webextensions/api/webnavigation | data/mdn-content/files/en-us/mozilla/add-ons/webextensions/api/webnavigation/transitiontype/index.md | ---
title: webNavigation.TransitionType
slug: Mozilla/Add-ons/WebExtensions/API/webNavigation/TransitionType
page-type: webextension-api-type
browser-compat: webextensions.api.webNavigation.TransitionType
---
{{AddonSidebar}}
Cause of the navigation: for example, the user clicked a link, or typed an address, or click... | 0 |
data/mdn-content/files/en-us/mozilla/add-ons/webextensions/api/webnavigation | data/mdn-content/files/en-us/mozilla/add-ons/webextensions/api/webnavigation/getframe/index.md | ---
title: webNavigation.getFrame()
slug: Mozilla/Add-ons/WebExtensions/API/webNavigation/getFrame
page-type: webextension-api-function
browser-compat: webextensions.api.webNavigation.getFrame
---
{{AddonSidebar}}
Retrieves information about a particular frame. A frame may be the top-level frame in a tab or a nested ... | 0 |
data/mdn-content/files/en-us/mozilla/add-ons/webextensions/api/webnavigation | data/mdn-content/files/en-us/mozilla/add-ons/webextensions/api/webnavigation/ondomcontentloaded/index.md | ---
title: webNavigation.onDOMContentLoaded
slug: Mozilla/Add-ons/WebExtensions/API/webNavigation/onDOMContentLoaded
page-type: webextension-api-event
browser-compat: webextensions.api.webNavigation.onDOMContentLoaded
---
{{AddonSidebar}}
Fired when the [DOMContentLoaded](/en-US/docs/Web/API/Document/DOMContentLoaded... | 0 |
data/mdn-content/files/en-us/mozilla/add-ons/webextensions/api/webnavigation | data/mdn-content/files/en-us/mozilla/add-ons/webextensions/api/webnavigation/onerroroccurred/index.md | ---
title: webNavigation.onErrorOccurred
slug: Mozilla/Add-ons/WebExtensions/API/webNavigation/onErrorOccurred
page-type: webextension-api-event
browser-compat: webextensions.api.webNavigation.onErrorOccurred
---
{{AddonSidebar}}
Fired when an error occurs and the navigation is aborted. This can happen if either a ne... | 0 |
data/mdn-content/files/en-us/mozilla/add-ons/webextensions/api/webnavigation | data/mdn-content/files/en-us/mozilla/add-ons/webextensions/api/webnavigation/ontabreplaced/index.md | ---
title: webNavigation.onTabReplaced
slug: Mozilla/Add-ons/WebExtensions/API/webNavigation/onTabReplaced
page-type: webextension-api-event
browser-compat: webextensions.api.webNavigation.onTabReplaced
---
{{AddonSidebar}}
Fired when the contents of the tab is replaced by a different (usually previously pre-rendered... | 0 |
data/mdn-content/files/en-us/mozilla/add-ons/webextensions/api/webnavigation | data/mdn-content/files/en-us/mozilla/add-ons/webextensions/api/webnavigation/onbeforenavigate/index.md | ---
title: webNavigation.onBeforeNavigate
slug: Mozilla/Add-ons/WebExtensions/API/webNavigation/onBeforeNavigate
page-type: webextension-api-event
browser-compat: webextensions.api.webNavigation.onBeforeNavigate
---
{{AddonSidebar}}
Fired when the browser is about to start a navigation event.
## Syntax
```js-nolint... | 0 |
data/mdn-content/files/en-us/mozilla/add-ons/webextensions/api | data/mdn-content/files/en-us/mozilla/add-ons/webextensions/api/runtime/index.md | ---
title: runtime
slug: Mozilla/Add-ons/WebExtensions/API/runtime
page-type: webextension-api
browser-compat: webextensions.api.runtime
---
{{AddonSidebar}}
This module provides information about your extension and the environment it's running in.
It also provides messaging APIs enabling you to:
- Communicate betw... | 0 |
data/mdn-content/files/en-us/mozilla/add-ons/webextensions/api/runtime | data/mdn-content/files/en-us/mozilla/add-ons/webextensions/api/runtime/platformnaclarch/index.md | ---
title: runtime.PlatformNaclArch
slug: Mozilla/Add-ons/WebExtensions/API/runtime/PlatformNaclArch
page-type: webextension-api-type
browser-compat: webextensions.api.runtime.PlatformNaclArch
---
{{AddonSidebar}}
The native client architecture. This may be different from arch on some platforms.
## Type
Values of t... | 0 |
data/mdn-content/files/en-us/mozilla/add-ons/webextensions/api/runtime | data/mdn-content/files/en-us/mozilla/add-ons/webextensions/api/runtime/getbackgroundpage/index.md | ---
title: runtime.getBackgroundPage()
slug: Mozilla/Add-ons/WebExtensions/API/runtime/getBackgroundPage
page-type: webextension-api-function
browser-compat: webextensions.api.runtime.getBackgroundPage
---
{{AddonSidebar}}
Retrieves the {{DOMxRef("Window")}} object for the background page running inside the current e... | 0 |
data/mdn-content/files/en-us/mozilla/add-ons/webextensions/api/runtime | data/mdn-content/files/en-us/mozilla/add-ons/webextensions/api/runtime/connect/index.md | ---
title: runtime.connect()
slug: Mozilla/Add-ons/WebExtensions/API/runtime/connect
page-type: webextension-api-function
browser-compat: webextensions.api.runtime.connect
---
{{AddonSidebar}}
Make a connection between different contexts inside the extension.
You can call this:
- in an extension's content scripts, ... | 0 |
data/mdn-content/files/en-us/mozilla/add-ons/webextensions/api/runtime | data/mdn-content/files/en-us/mozilla/add-ons/webextensions/api/runtime/connectnative/index.md | ---
title: runtime.connectNative()
slug: Mozilla/Add-ons/WebExtensions/API/runtime/connectNative
page-type: webextension-api-function
browser-compat: webextensions.api.runtime.connectNative
---
{{AddonSidebar}}
Connects the extension to a native application on the user's computer. This takes the name of a native appl... | 0 |
data/mdn-content/files/en-us/mozilla/add-ons/webextensions/api/runtime | data/mdn-content/files/en-us/mozilla/add-ons/webextensions/api/runtime/onmessageexternal/index.md | ---
title: runtime.onMessageExternal
slug: Mozilla/Add-ons/WebExtensions/API/runtime/onMessageExternal
page-type: webextension-api-event
browser-compat: webextensions.api.runtime.onMessageExternal
---
{{AddonSidebar}}
Use this event to listen for messages from other extensions or web pages.
By default, an extension ... | 0 |
data/mdn-content/files/en-us/mozilla/add-ons/webextensions/api/runtime | data/mdn-content/files/en-us/mozilla/add-ons/webextensions/api/runtime/platformos/index.md | ---
title: runtime.PlatformOs
slug: Mozilla/Add-ons/WebExtensions/API/runtime/PlatformOs
page-type: webextension-api-type
browser-compat: webextensions.api.runtime.PlatformOs
---
{{AddonSidebar}}
The operating system the browser is running on.
## Type
Values of this type are strings. Possible values are:
- `"mac"`... | 0 |
data/mdn-content/files/en-us/mozilla/add-ons/webextensions/api/runtime | data/mdn-content/files/en-us/mozilla/add-ons/webextensions/api/runtime/requestupdatecheck/index.md | ---
title: runtime.requestUpdateCheck()
slug: Mozilla/Add-ons/WebExtensions/API/runtime/requestUpdateCheck
page-type: webextension-api-function
browser-compat: webextensions.api.runtime.requestUpdateCheck
---
{{AddonSidebar}}
Checks to see if an update for the extension is available.
This is an asynchronous function... | 0 |
data/mdn-content/files/en-us/mozilla/add-ons/webextensions/api/runtime | data/mdn-content/files/en-us/mozilla/add-ons/webextensions/api/runtime/oninstalled/index.md | ---
title: runtime.onInstalled
slug: Mozilla/Add-ons/WebExtensions/API/runtime/onInstalled
page-type: webextension-api-event
browser-compat: webextensions.api.runtime.onInstalled
---
{{AddonSidebar}}
Fired when the extension is first installed, when the extension is updated to a new version, and when the browser is u... | 0 |
data/mdn-content/files/en-us/mozilla/add-ons/webextensions/api/runtime | data/mdn-content/files/en-us/mozilla/add-ons/webextensions/api/runtime/onconnectexternal/index.md | ---
title: runtime.onConnectExternal
slug: Mozilla/Add-ons/WebExtensions/API/runtime/onConnectExternal
page-type: webextension-api-event
browser-compat: webextensions.api.runtime.onConnectExternal
---
{{AddonSidebar}}
Fired when an extension receives a connection request from a different extension.
To send a message... | 0 |
data/mdn-content/files/en-us/mozilla/add-ons/webextensions/api/runtime | data/mdn-content/files/en-us/mozilla/add-ons/webextensions/api/runtime/onmessage/index.md | ---
title: runtime.onMessage
slug: Mozilla/Add-ons/WebExtensions/API/runtime/onMessage
page-type: webextension-api-event
browser-compat: webextensions.api.runtime.onMessage
---
{{AddonSidebar}}
Use this event to listen for messages from another part of your extension.
Some example use cases are:
- **in a [content s... | 0 |
data/mdn-content/files/en-us/mozilla/add-ons/webextensions/api/runtime | data/mdn-content/files/en-us/mozilla/add-ons/webextensions/api/runtime/reload/index.md | ---
title: runtime.reload()
slug: Mozilla/Add-ons/WebExtensions/API/runtime/reload
page-type: webextension-api-function
browser-compat: webextensions.api.runtime.reload
---
{{AddonSidebar}}
Reloads the extension.
If there are any pending updates for the extension, that it has deferred by listening to {{WebExtAPIRef(... | 0 |
data/mdn-content/files/en-us/mozilla/add-ons/webextensions/api/runtime | data/mdn-content/files/en-us/mozilla/add-ons/webextensions/api/runtime/port/index.md | ---
title: runtime.Port
slug: Mozilla/Add-ons/WebExtensions/API/runtime/Port
page-type: webextension-api-type
browser-compat: webextensions.api.runtime.Port
---
{{AddonSidebar}}
A `Port` object represents one end of a connection between two specific contexts, which can be used to exchange messages.
One side initiate... | 0 |
data/mdn-content/files/en-us/mozilla/add-ons/webextensions/api/runtime | data/mdn-content/files/en-us/mozilla/add-ons/webextensions/api/runtime/sendnativemessage/index.md | ---
title: runtime.sendNativeMessage()
slug: Mozilla/Add-ons/WebExtensions/API/runtime/sendNativeMessage
page-type: webextension-api-function
browser-compat: webextensions.api.runtime.sendNativeMessage
---
{{AddonSidebar}}
Sends a single message from an extension to a native application.
This takes two mandatory par... | 0 |
data/mdn-content/files/en-us/mozilla/add-ons/webextensions/api/runtime | data/mdn-content/files/en-us/mozilla/add-ons/webextensions/api/runtime/getbrowserinfo/index.md | ---
title: runtime.getBrowserInfo()
slug: Mozilla/Add-ons/WebExtensions/API/runtime/getBrowserInfo
page-type: webextension-api-function
browser-compat: webextensions.api.runtime.getBrowserInfo
---
{{AddonSidebar}}
Returns information about the browser in which the extension is installed.
This is an asynchronous func... | 0 |
data/mdn-content/files/en-us/mozilla/add-ons/webextensions/api/runtime | data/mdn-content/files/en-us/mozilla/add-ons/webextensions/api/runtime/sendmessage/index.md | ---
title: runtime.sendMessage()
slug: Mozilla/Add-ons/WebExtensions/API/runtime/sendMessage
page-type: webextension-api-function
browser-compat: webextensions.api.runtime.sendMessage
---
{{AddonSidebar}}
Sends a single message to event listeners within your extension or a different extension.
If sending to your ext... | 0 |
data/mdn-content/files/en-us/mozilla/add-ons/webextensions/api/runtime | data/mdn-content/files/en-us/mozilla/add-ons/webextensions/api/runtime/onupdateavailable/index.md | ---
title: runtime.onUpdateAvailable
slug: Mozilla/Add-ons/WebExtensions/API/runtime/onUpdateAvailable
page-type: webextension-api-event
browser-compat: webextensions.api.runtime.onUpdateAvailable
---
{{AddonSidebar}}
Fired when an update to the extension is available. This event enables an extension to delay an upda... | 0 |
data/mdn-content/files/en-us/mozilla/add-ons/webextensions/api/runtime | data/mdn-content/files/en-us/mozilla/add-ons/webextensions/api/runtime/platformarch/index.md | ---
title: runtime.PlatformArch
slug: Mozilla/Add-ons/WebExtensions/API/runtime/PlatformArch
page-type: webextension-api-type
browser-compat: webextensions.api.runtime.PlatformArch
---
{{AddonSidebar}}
The machine's processor architecture.
## Type
Values of this type are strings. Possible values are:
- `"arm"`
-... | 0 |
data/mdn-content/files/en-us/mozilla/add-ons/webextensions/api/runtime | data/mdn-content/files/en-us/mozilla/add-ons/webextensions/api/runtime/onconnect/index.md | ---
title: runtime.onConnect
slug: Mozilla/Add-ons/WebExtensions/API/runtime/onConnect
page-type: webextension-api-event
browser-compat: webextensions.api.runtime.onConnect
---
{{AddonSidebar}}
Fired when a connection is made with either an extension process or a content script.
## Syntax
```js-nolint
browser.runti... | 0 |
data/mdn-content/files/en-us/mozilla/add-ons/webextensions/api/runtime | data/mdn-content/files/en-us/mozilla/add-ons/webextensions/api/runtime/platforminfo/index.md | ---
title: runtime.PlatformInfo
slug: Mozilla/Add-ons/WebExtensions/API/runtime/PlatformInfo
page-type: webextension-api-type
browser-compat: webextensions.api.runtime.PlatformInfo
---
{{AddonSidebar}}
An object containing information about the current platform.
## Type
Values of this type are objects, which contai... | 0 |
data/mdn-content/files/en-us/mozilla/add-ons/webextensions/api/runtime | data/mdn-content/files/en-us/mozilla/add-ons/webextensions/api/runtime/getpackagedirectoryentry/index.md | ---
title: runtime.getPackageDirectoryEntry()
slug: Mozilla/Add-ons/WebExtensions/API/runtime/getPackageDirectoryEntry
page-type: webextension-api-function
browser-compat: webextensions.api.runtime.getPackageDirectoryEntry
---
{{AddonSidebar}}
Returns a `DirectoryEntry` object representing the package directory.
Thi... | 0 |
data/mdn-content/files/en-us/mozilla/add-ons/webextensions/api/runtime | data/mdn-content/files/en-us/mozilla/add-ons/webextensions/api/runtime/getframeid/index.md | ---
title: runtime.getFrameId()
slug: Mozilla/Add-ons/WebExtensions/API/runtime/getFrameId
page-type: webextension-api-function
browser-compat: webextensions.api.runtime.getFrameId
---
{{AddonSidebar}}
Returns the frame ID of any window global or frame element when called from a content script or extension page, incl... | 0 |
data/mdn-content/files/en-us/mozilla/add-ons/webextensions/api/runtime | data/mdn-content/files/en-us/mozilla/add-ons/webextensions/api/runtime/oninstalledreason/index.md | ---
title: runtime.OnInstalledReason
slug: Mozilla/Add-ons/WebExtensions/API/runtime/OnInstalledReason
page-type: webextension-api-type
browser-compat: webextensions.api.runtime.OnInstalledReason
---
{{AddonSidebar}}
The reason that the {{WebExtAPIRef("runtime.onInstalled")}} event is being dispatched.
## Type
Valu... | 0 |
data/mdn-content/files/en-us/mozilla/add-ons/webextensions/api/runtime | data/mdn-content/files/en-us/mozilla/add-ons/webextensions/api/runtime/setuninstallurl/index.md | ---
title: runtime.setUninstallURL()
slug: Mozilla/Add-ons/WebExtensions/API/runtime/setUninstallURL
page-type: webextension-api-function
browser-compat: webextensions.api.runtime.setUninstallURL
---
{{AddonSidebar}}
Sets the URL to be visited when the extension is uninstalled. This can be used to clean up server-sid... | 0 |
data/mdn-content/files/en-us/mozilla/add-ons/webextensions/api/runtime | data/mdn-content/files/en-us/mozilla/add-ons/webextensions/api/runtime/onrestartrequiredreason/index.md | ---
title: runtime.OnRestartRequiredReason
slug: Mozilla/Add-ons/WebExtensions/API/runtime/OnRestartRequiredReason
page-type: webextension-api-type
browser-compat: webextensions.api.runtime.OnRestartRequiredReason
---
{{AddonSidebar}}
The reason that the {{WebExtAPIRef("runtime.onRestartRequired", "onRestartRequired"... | 0 |
data/mdn-content/files/en-us/mozilla/add-ons/webextensions/api/runtime | data/mdn-content/files/en-us/mozilla/add-ons/webextensions/api/runtime/id/index.md | ---
title: runtime.id
slug: Mozilla/Add-ons/WebExtensions/API/runtime/id
page-type: webextension-api-property
browser-compat: webextensions.api.runtime.id
---
{{AddonSidebar}}
The ID of the extension.
## Syntax
```js-nolint
let myAddonId = browser.runtime.id;
```
### Value
A `string` representing the add-on ID. I... | 0 |
data/mdn-content/files/en-us/mozilla/add-ons/webextensions/api/runtime | data/mdn-content/files/en-us/mozilla/add-ons/webextensions/api/runtime/onsuspend/index.md | ---
title: runtime.onSuspend
slug: Mozilla/Add-ons/WebExtensions/API/runtime/onSuspend
page-type: webextension-api-event
browser-compat: webextensions.api.runtime.onSuspend
---
{{AddonSidebar}}
Sent to the event page just before it is unloaded. This gives the extension an opportunity to do some cleanup. Note that sin... | 0 |
data/mdn-content/files/en-us/mozilla/add-ons/webextensions/api/runtime | data/mdn-content/files/en-us/mozilla/add-ons/webextensions/api/runtime/onbrowserupdateavailable/index.md | ---
title: runtime.onBrowserUpdateAvailable
slug: Mozilla/Add-ons/WebExtensions/API/runtime/onBrowserUpdateAvailable
page-type: webextension-api-event
status:
- deprecated
browser-compat: webextensions.api.runtime.onBrowserUpdateAvailable
---
{{AddonSidebar}}{{Deprecated_header}}
Fired when an update for the browse... | 0 |
data/mdn-content/files/en-us/mozilla/add-ons/webextensions/api/runtime | data/mdn-content/files/en-us/mozilla/add-ons/webextensions/api/runtime/onrestartrequired/index.md | ---
title: runtime.onRestartRequired
slug: Mozilla/Add-ons/WebExtensions/API/runtime/onRestartRequired
page-type: webextension-api-event
browser-compat: webextensions.api.runtime.onRestartRequired
---
{{AddonSidebar}}
Fired when an app or the device that it runs on needs to be restarted. The app should close all its ... | 0 |
data/mdn-content/files/en-us/mozilla/add-ons/webextensions/api/runtime | data/mdn-content/files/en-us/mozilla/add-ons/webextensions/api/runtime/openoptionspage/index.md | ---
title: runtime.openOptionsPage()
slug: Mozilla/Add-ons/WebExtensions/API/runtime/openOptionsPage
page-type: webextension-api-function
browser-compat: webextensions.api.runtime.openOptionsPage
---
{{AddonSidebar}}
If your extension has an [options page](/en-US/docs/Mozilla/Add-ons/WebExtensions/user_interface/Opti... | 0 |
data/mdn-content/files/en-us/mozilla/add-ons/webextensions/api/runtime | data/mdn-content/files/en-us/mozilla/add-ons/webextensions/api/runtime/getplatforminfo/index.md | ---
title: runtime.getPlatformInfo()
slug: Mozilla/Add-ons/WebExtensions/API/runtime/getPlatformInfo
page-type: webextension-api-function
browser-compat: webextensions.api.runtime.getPlatformInfo
---
{{AddonSidebar}}
Returns information about the current platform. This can only be called in the background script cont... | 0 |
data/mdn-content/files/en-us/mozilla/add-ons/webextensions/api/runtime | data/mdn-content/files/en-us/mozilla/add-ons/webextensions/api/runtime/lasterror/index.md | ---
title: runtime.lastError
slug: Mozilla/Add-ons/WebExtensions/API/runtime/lastError
page-type: webextension-api-property
browser-compat: webextensions.api.runtime.lastError
---
{{AddonSidebar}}
This value is used to report an error message from an asynchronous API, when the asynchronous API is given a callback. Th... | 0 |
data/mdn-content/files/en-us/mozilla/add-ons/webextensions/api/runtime | data/mdn-content/files/en-us/mozilla/add-ons/webextensions/api/runtime/requestupdatecheckstatus/index.md | ---
title: runtime.RequestUpdateCheckStatus
slug: Mozilla/Add-ons/WebExtensions/API/runtime/RequestUpdateCheckStatus
page-type: webextension-api-type
browser-compat: webextensions.api.runtime.RequestUpdateCheckStatus
---
{{AddonSidebar}}
Result of a call to {{WebExtAPIRef("runtime.requestUpdateCheck()")}}.
## Type
... | 0 |
data/mdn-content/files/en-us/mozilla/add-ons/webextensions/api/runtime | data/mdn-content/files/en-us/mozilla/add-ons/webextensions/api/runtime/onstartup/index.md | ---
title: runtime.onStartup
slug: Mozilla/Add-ons/WebExtensions/API/runtime/onStartup
page-type: webextension-api-event
browser-compat: webextensions.api.runtime.onStartup
---
{{AddonSidebar}}
Fired when a profile that has this extension installed first starts up. This event is not fired when a private browsing (inc... | 0 |
data/mdn-content/files/en-us/mozilla/add-ons/webextensions/api/runtime | data/mdn-content/files/en-us/mozilla/add-ons/webextensions/api/runtime/getmanifest/index.md | ---
title: runtime.getManifest()
slug: Mozilla/Add-ons/WebExtensions/API/runtime/getManifest
page-type: webextension-api-function
browser-compat: webextensions.api.runtime.getManifest
---
{{AddonSidebar}}
Get the complete [manifest.json](/en-US/docs/Mozilla/Add-ons/WebExtensions/manifest.json) file, deserialized from... | 0 |
data/mdn-content/files/en-us/mozilla/add-ons/webextensions/api/runtime | data/mdn-content/files/en-us/mozilla/add-ons/webextensions/api/runtime/messagesender/index.md | ---
title: runtime.MessageSender
slug: Mozilla/Add-ons/WebExtensions/API/runtime/MessageSender
page-type: webextension-api-type
browser-compat: webextensions.api.runtime.MessageSender
---
{{AddonSidebar}}
An object containing information about the sender of a message or connection request that is passed to the {{WebE... | 0 |
data/mdn-content/files/en-us/mozilla/add-ons/webextensions/api/runtime | data/mdn-content/files/en-us/mozilla/add-ons/webextensions/api/runtime/geturl/index.md | ---
title: runtime.getURL()
slug: Mozilla/Add-ons/WebExtensions/API/runtime/getURL
page-type: webextension-api-function
browser-compat: webextensions.api.runtime.getURL
---
{{AddonSidebar}}
Given a relative path from the [manifest.json](/en-US/docs/Mozilla/Add-ons/WebExtensions/manifest.json) to a resource packaged w... | 0 |
data/mdn-content/files/en-us/mozilla/add-ons/webextensions/api/runtime | data/mdn-content/files/en-us/mozilla/add-ons/webextensions/api/runtime/onsuspendcanceled/index.md | ---
title: runtime.onSuspendCanceled
slug: Mozilla/Add-ons/WebExtensions/API/runtime/onSuspendCanceled
page-type: webextension-api-event
browser-compat: webextensions.api.runtime.onSuspendCanceled
---
{{AddonSidebar}}
Sent after {{WebExtAPIRef("runtime.onSuspend")}} to indicate that the app won't be unloaded after al... | 0 |
data/mdn-content/files/en-us/mozilla/add-ons/webextensions/api | data/mdn-content/files/en-us/mozilla/add-ons/webextensions/api/menus/index.md | ---
title: menus
slug: Mozilla/Add-ons/WebExtensions/API/menus
page-type: webextension-api
browser-compat: webextensions.api.menus
---
{{AddonSidebar}}
Add items to the browser's menu system.
This API is modeled on Chrome's ["contextMenus"](https://developer.chrome.com/docs/extensions/reference/contextMenus/) API, w... | 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/remove/index.md | ---
title: menus.remove()
slug: Mozilla/Add-ons/WebExtensions/API/menus/remove
page-type: webextension-api-function
browser-compat: webextensions.api.menus.remove
---
{{AddonSidebar}}
Removes a menu item.
For compatibility with other browsers, Firefox makes this method available via the `contextMenus` namespace as w... | 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/create/index.md | ---
title: menus.create()
slug: Mozilla/Add-ons/WebExtensions/API/menus/create
page-type: webextension-api-function
browser-compat: webextensions.api.menus.create
---
{{AddonSidebar}}
Creates a menu item using an options object defining properties for the item.
Unlike other asynchronous functions, this one does not ... | 0 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.