• Skip to main content
  • Select language
  • Skip to search
MDN Web Docs
  • Technologies
    • HTML
    • CSS
    • JavaScript
    • Graphics
    • HTTP
    • APIs / DOM
    • WebExtensions
    • MathML
  • References & Guides
    • Learn web development
    • Tutorials
    • References
    • Developer Guides
    • Accessibility
    • Game development
    • ...more docs
Firefox
  1. MDN
  2. Mozilla
  3. Firefox
  4. Multiprocess Firefox
  5. Message manager

Message manager

Message managers provide a way for chrome-privileged JavaScript code to communicate across process boundaries. They are particularly useful for allowing chrome code, including the browser's code and extension's code, to access web content while the browser is running web content in a separate process.

These guides explain how to use message managers in multiprocess Firefox.

Note that none of this requires multiprocess Firefox: everything described here will work with single-process Firefox, so the same code will work on both variants.


Guides

Message manager overview
 
Frame script loading and lifetime
 
Communicating with frame scripts
 
Performance Best Practices
 
Frame script environment
 
Limitations of frame scripts
 
Process scripts
 

API reference

nsIFrameScriptLoader
 
nsIMessageListenerManager
 
nsIMessageBroadcaster
 
nsIMessageSender
 
nsISyncMessageSender
 
nsIContentFrameMessageManager
 
nsIProcessScriptLoader
 

Document Tags and Contributors

Tags: 
  • API
  • Guide
  • JavaScript
 Contributors to this page: rolfedh, The_8472, wbamberg
 Last updated by: rolfedh, Feb 20, 2016, 5:06:14 PM
  1. Add-ons
    1. Firefox developer release notes
    2. Add-ons
    3. Add-on guidelines
    4. Add-on Manager
    5. Extensions
    6. OpenSearch plug-ins
    7. Plugins
    8. Themes
  2. Firefox internals
    1. Firefox developer release notes
    2. Mozilla project
    3. Gecko
    4. JavaScript code modules
    5. JS-ctypes
    6. MathML project
    7. MFBT
    8. Mozilla projects
    9. Preference system
    10. WebIDL bindings
    11. XPCOM
    12. XUL
  3. Building and contributing
    1. Build instructions
    2. Configuring build options
    3. How the build system works
    4. Mozilla source code
    5. Localization
    6. Mercurial
    7. Quality assurance
    8. Using Mozilla code in other projects