简体   繁体   中英

Communicate between a Web page/app and a Browser Extension

I have a Web App and an associated Browser Extension and I need a way of communication information from the Web App to the Extension when an action occurs in the Web App.

Chrome has runtime.onMessageExternal() etc. which lets your app or extension receive and respond to messages from regular web pages. ref: https://developer.chrome.com/extensions/messaging

This should meet my needs, however it isn't available in Firefox and I need a cross browser solution.

Any suggestions?

You can do this with content script. Messaging from content script support by FF from version 50.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM