mozilla
Your Search Results

    which-api

    Which messaging API should I use?

      panel page-mod page-worker tabs sidebar frame context-menu

    port.on/port.emit

    self.port.on/self.port.emit

    X X X X      

    port.on/port.emit

    addon.port.on/addon.port.emit

    X1       X    

    postMessage/on

    self.postMessage/self.on

                X

    postMessage/on

    window.postMessage/window.addEventListener

              X  

    1. To use this variant the scripts must be local to the add-on (that is, stored in the add-on's data directory) and included by the page rather than injected using the contentScriptFile option.

    Document Tags and Contributors

    Contributors to this page: wbamberg
    Last updated by: wbamberg,