GO-V.ORG
As seen in

Search e01

One query across the encyclopedia, books, dictionary, papers, Wikidata and the developer library. Every hit carries its source.

12 results across 6 corpora for extension.lastError.

Papers 6

Developer library 6

extension

Utilities related to your extension. Get URLs to resources packages with your extension. Get the [`Window`](/docs/Web/API/Window) object for your extension's pages. Get the values for various settings. > [!NOTE] > **The messaging APIs in this module are deprecated** in favor of the equivalent APIs in the [`runtime`](/docs/Mozilla/Add-ons/WebExtensions/API/runtime) module. ## Types - extension.ViewType - : The ty

extension.sendRequest()

> [!WARNING] > This method has been deprecated. Use runtime.sendMessage instead. Sends a request to other listeners within the extension. Similar to runtime.connect, but only sends a request with an optional response. The extension.onRequest event fires in each page of the extension. ## Syntax ```js-nolint chrome.extension.sendRequest( extensionId, // optional string request, // any

extension.lastError

deprecated, use runtime.lastError instead. An alias for runtime.lastError. ## Browser compatibility > [!NOTE] > This API is based on Chromium's [`chrome.extension`](https://developer.chrome.com/docs/extensions/reference/api/extension#property-lastError) API. This documentation is derived from [`extension.json`](https://chromium.googlesource.com/chromium/src/+/master/chrome/common/extensions/api/extension.json)

Working with userScripts

t's available in Firefox for Manifest V2. For functionality to work with user scripts in Manifest V3 see the new userScripts API. By implementing userScripts, extension developers can modify how sites look and/or work to better meet user needs. Implement userScripts in your extension using the following steps: 1. Define the script in the extension's manifest using the `"user_scripts"` key. 2. Register the userScri

action.setPopup()

cks on the browser action's icon. Tabs without a specific popup will inherit the global popup, which defaults to the [`default_popup`](/docs/Mozilla/Add-ons/WebExtensions/manifest.json/browser_action) specified in the manifest. > [!NOTE] > This API is available in Manifest V3 or higher. ## Syntax ```js-nolint browser.action.setPopup( details // object ) ``` ### Parameters - `details` - : An object with the f

downloads.setShelfEnabled()

nables or disables the gray shelf at the bottom of every window associated with the current browser profile. The shelf will be disabled as long as at least one extension has disabled it. If you try to enable the shelf when at least one other extension has already disabled it, the call will fail and runtime.lastError will be set with an appropriate error message. > [!NOTE] > To use this function in your extension yo

JSON results · Services directory