Search e01
One query across the encyclopedia, books, dictionary, papers, Wikidata and the developer library. Every hit carries its source.
5 results across 6 corpora for declarativeNetRequest.MatchedRule.
Developer library 5
declarativeNetRequest
e and modify network requests without notifying extensions about individual network requests. ## Permissions To use this API, an extension must request the `"declarativeNetRequest"` or `"declarativeNetRequestWithHostAccess"` [permission](/docs/Mozilla/Add-ons/WebExtensions/manifest.json/permissions) in its [`manifest.json`](/docs/Mozilla/Add-ons/WebExtensions/manifest.json) file. The `"declarativeNetRequest"` permi
declarativeNetRequest.testMatchOutcome()
Checks if any of the extension's `declarativeNetRequest` rules would match a hypothetical request. Only available while testing, as this is intended to be used during extension development. See [Testing](/docs/Mozilla/Add-ons/WebExtensions/API/declarativeNetRequest#testing) for details on how testing is enabled in each browser. ## Syntax ```js-nolint let result = await browser.declarativeNetRequest.testMatchOutcome
declarativeNetRequest.getMatchedRules()
rules matched for the extension. Callers can filter the list of matched rules by specifying a `filter`. This method is only available to extensions with the `"declarativeNetRequestFeedback"` permission or have the [`activeTab` permission](/docs/Mozilla/Add-ons/WebExtensions/activeTab_permission) granted for the `tabId` specified in `filter`. Rules not associated with an active document that were matched more than fi
declarativeNetRequest.onRuleMatchedDebug
Fired when a rule is matched with a request. Only available extensions with the `"declarativeNetRequestFeedback"` permission, as this is intended for debugging purposes only. See [Testing](/docs/Mozilla/Add-ons/WebExtensions/API/declarativeNetRequest#testing) for details on how testing is enabled in each browser. ## Syntax ```js-nolint browser.declarativeNetRequest.onRuleMatchedDebug.addListener(listener) browser.d
declarativeNetRequest.MatchedRule
An object describing the matched rule. This type may be returned by the declarativeNetRequest.getMatchedRules or declarativeNetRequest.testMatchOutcome methods, or observed through the declarativeNetRequest.onRuleMatchedDebug event. ## Type Values of this type are objects. They contain these properties: - `extensionId` - : A `string`. The ID of the extension, if this rule belongs to a different extension. This p