• Skip to main content
  • Skip to search
  • Skip to select language
MDN Web Docs
  • References
    • Overview / Web Technology

      Web technology reference for developers

    • HTML

      Structure of content on the web

    • CSS

      Code used to describe document style

    • JavaScript

      General-purpose scripting language

    • HTTP

      Protocol for transmitting web resources

    • Web APIs

      Interfaces for building web applications

    • Web Extensions

      Developing extensions for web browsers

    • Web Technology

      Web technology reference for developers

  • Guides
    • Overview / MDN Learning Area

      Learn web development

    • MDN Learning Area

      Learn web development

    • HTML

      Learn to structure web content with HTML

    • CSS

      Learn to style content using CSS

    • JavaScript

      Learn to run scripts in the browser

    • Accessibility

      Learn to make the web accessible to all

  • MDN Plus
    • Overview

      A customized MDN experience

    • Updates

      All browser compatibility updates at a glance

    • Documentation

      Learn how to use MDN Plus

    • FAQ

      Frequently asked questions about MDN Plus

  • Log in
  • Get MDN Plus
  1. Mozilla
  2. Add-ons
  3. Browser Extensions
  4. JavaScript APIs
  5. declarativeNetRequest
  6. declarativeNetRequest.SESSION_RULESET_ID

In this article

  • Browser compatibility
  1. Browser extensions
  2. Getting started
    1. What are extensions?
    2. Your first extension
    3. Your second extension
    4. Anatomy of an extension
    5. Example extensions
    6. What next?
  3. Concepts
    1. Using the JavaScript APIs
    2. Content scripts
    3. Background scripts
    4. Match patterns
    5. Working with files
    6. Internationalization
    7. Content Security Policy
    8. Native messaging
    9. Differences between API implementations
    10. Chrome incompatibilities
  4. User interface
    1. User Interface
    2. Toolbar button
    3. Address bar button
    4. Sidebars
    5. Context menu items
    6. Options page
    7. Extension pages
    8. Notifications
    9. Address bar suggestions
    10. Developer tools panels
  5. How to
    1. Intercept HTTP requests
    2. Modify a web page
    3. Insert external content
    4. Share objects with page scripts
    5. Add a button to the toolbar
    6. Implement a settings page
    7. Work with the Tabs API
    8. Work with the Bookmarks API
    9. Work with the Cookies API
    10. Work with contextual identities
    11. Interact with the clipboard
    12. Extending the developer tools
    13. Build a cross-browser extension
  6. Firefox differentiators
  7. JavaScript APIs
    1. Browser support for JavaScript APIs
    2. action
    3. alarms
    4. bookmarks
    5. browserAction
    6. browserSettings
    7. browsingData
    8. captivePortal
    9. clipboard
    10. commands
    11. contentScripts
    12. contextualIdentities
    13. cookies
    14. declarativeNetRequest
      1. devtools
      2. dns
      3. dom
      4. downloads
      5. events
      6. extension
      7. extensionTypes
      8. find
      9. history
      10. i18n
      11. identity
      12. idle
      13. management
      14. menus
      15. notifications
      16. omnibox
      17. pageAction
      18. permissions
      19. pkcs11
      20. privacy
      21. proxy
      22. runtime
      23. scripting
      24. search
      25. sessions
      26. sidebarAction
      27. storage
      28. tabs
      29. theme
      30. topSites
      31. types
      32. userScripts
      33. webNavigation
      34. webRequest
      35. windows
    15. Manifest keys
      1. Introduction
      1. action
      2. author
      3. background
      4. browser_action
      5. browser_specific_settings
      6. chrome_settings_overrides
      7. chrome_url_overrides
      8. commands
      9. content_scripts
      10. content_security_policy
      11. declarative_net_request
      12. default_locale
      13. description
      14. developer
      15. devtools_page
      16. dictionaries
      17. externally_connectable
      18. homepage_url
      19. host_permissions
      20. icons
      21. incognito
      22. manifest_version
      23. name
      24. offline_enabled
      25. omnibox
      26. optional_permissions
      27. options_page
      28. options_ui
      29. page_action
      30. permissions
      31. protocol_handlers
      32. short_name
      33. sidebar_action
      34. storage
      35. theme
      36. theme_experiment
      37. user_scripts
      38. version
      39. version_name
      40. web_accessible_resources
    16. Extension Workshop
      1. Develop
      2. Publish
      3. Manage
      4. Enterprise
    17. Contact us
    18. Channels
      1. Add-ons blog
      2. Add-ons forum
      3. Add-ons chat

    In this article

    • Browser compatibility

    declarativeNetRequest.SESSION_RULESET_ID

    The ruleset ID for the session-scoped rules added by the extension.

    Its value is "_session".

    Browser compatibility

    BCD tables only load in the browser

    Found a content problem with this page?

    • Edit the page on GitHub.
    • Report the content issue.
    • View the source on GitHub.
    Want to get more involved? Learn how to contribute.

    This page was last modified on Mar 7, 2023 by MDN contributors.

    MDN logo

    Your blueprint for a better internet.

    • MDN on Twitter
    • MDN on GitHub

    MDN

    • About
    • Hacks Blog
    • Careers
    • Advertise with us

    Support

    • Product help
    • Report an issue

    Our communities

    • MDN Community
    • MDN Forum
    • MDN Chat

    Developers

    • Web Technologies
    • Learn Web Development
    • MDN Plus
    Mozilla logo
    • Website Privacy Notice
    • Cookies
    • Legal
    • Community Participation Guidelines

    Visit Mozilla Corporation’s not-for-profit parent, the Mozilla Foundation.
    Portions of this content are ©1998–2023 by individual mozilla.org contributors. Content available under a Creative Commons license.