An example extension showing how to communicate between a chrome scope (extension) and content scope (panel iframe with type="content")
- Install the extension
- Open developer tools Toolbox (F12 or Menu -> Developer -> Toogle Tools)
- Open Browser Console (Menu -> Developer -> Browser Console))
- Select the
My Panel
panel - You should see "Message from chrome: Hello from chrome scope!" in the console
- Click anywhere in the panel content
- You should see "Message from content: Hello from content scope!" in the console
- Firebug.next: https://github.com/firebug/firebug.next
- DevTools Extension Examples: https://github.com/firebug/devtools-extension-examples
- Add-on SDK: https://developer.mozilla.org/en-US/Add-ons/SDK
- DevTools API: https://developer.mozilla.org/en-US/docs/Tools/DevToolsAPI
- Coding Style: https://github.com/mozilla/addon-sdk/wiki/Coding-style-guide
- DevTools/Hacking: https://wiki.mozilla.org/DevTools/Hacking