问题
How do I pass data and messages between 2 Firefox Add-Ons (the way Google Chrome does it, here)?
回答1:
All Firefox add-ons share the same global scope when you do an overlay (which essentially every add-on uses). You just need to create some shared object to pass data back and forth on.
来源:https://stackoverflow.com/questions/2869477/communicating-between-2-firefox-add-ons-cross-extension-communication