Communicating between 2 Firefox Add-Ons (Cross-Extension Communication)

99封情书 提交于 2019-12-23 18:49:50

问题


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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!