On the frame-script.js, i cannot catch / listen to postMessages from the web scripts on the web page (nor to custom events).
However, i tried and was able to catch 'click' events.
What am i doing wrong?
post messaging like this :
window.postMessage(message, "*");
listening on the frame-script:
addEventListener("message", dosomething, false);
also tried
content.addEventListener("message", dosomething, false);
doesn't catch the postMessage.