I wrote a firefox extension and for interation data between privilege and non-privilege pages I use this snipped code
//Listen for the event window.addE
You probably have to use __exposedProps__.
Like
var detail = { name: "activate", method: function(){}, __exposedProps__: {method: "r"} };
Needless to say that, unless you are absolutely sure that you know what you 're doing, this is a security risk.