firefox-devtools / extension-examples

DevTools extension examples
Mozilla Public License 2.0
27 stars 7 forks source link

New example: communication between inspected window and devtools panel #3

Closed janodvarko closed 7 years ago

janodvarko commented 7 years ago

Let's introduce a new example that shows how to send messages from the page (e.g. click event) to a devtools panel (e.g. to render list of click events). Sending messages can't be done directly, it needs to go through background page. The example should nicely explain the concept.

This page could be useful: https://developer.mozilla.org/en-US/Add-ons/WebExtensions/Content_scripts#Communicating_with_background_scripts

Honza

janodvarko commented 7 years ago

https://github.com/devtools-html/extension-examples/tree/master/messaging