gecko/testing/mochitest/tests/SpecialPowersLoadChromeScript.js

7 lines
158 B
JavaScript

// Just receive 'foo' message and forward it back
// as 'bar' message
addMessageListener("foo", function (message) {
sendAsyncMessage("bar", message);
});