Search e01
One query across the encyclopedia, books, dictionary, papers, Wikidata and the developer library. Every hit carries its source.
3 results across 6 corpora for declarativeNetRequest.updateSessionRules().
Developer library 3
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.Rule
the [manifest.json's `declarative_net_request` key](/docs/Mozilla/Add-ons/WebExtensions/manifest.json/declarative_net_request), or more dynamically through the declarativeNetRequest.updateDynamicRules or declarativeNetRequest.updateSessionRules methods. See [Rules](/docs/Mozilla/Add-ons/WebExtensions/API/declarativeNetRequest#rules) on the API overview page for more information about rules. ## Type Values of this
declarativeNetRequest.updateSessionRules()
AMIC_AND_SESSION_RULES. - From Chrome 120 and Firefox 128, to the value of MAX_NUMBER_OF_SESSION_RULES. ## Syntax ```js-nolint let rulesetUpdated = browser.declarativeNetRequest.updateSessionRules( options // object ); ``` ### Parameters - `options` - : An object containing details of the rules to add or delete from the dynamic rules. - `addRules` - : An array of declarativeNetRe