Path: blob/main/files/en-us/mozilla/add-ons/webextensions/api/declarativenetrequest/getsessionrules/index.md
6555 views
------{{AddonSidebar()}}
Returns the active set of session scoped rules for the extension.
Syntax
Parameters
This function takes no parameters.
Return value
A Promise fulfilled with an array of {{WebExtAPIRef("declarativeNetRequest.Rule")}} objects. If no rules are active, the object is empty. If the request fails, the promise is rejected with an error message
Examples
{{WebExtExamples}}
Browser compatibility
{{Compat}}