Communicating with a content script in a Firefox extension
问题 I have a Chrome extension which does the following action: chrome.extension.sendRequest({action: "store", working_tab: tab.id, store_text: text}); And Correspondingly, the listener is: chrome.extension.onRequest.addListener(function(request, sender, sendResponse) { if (request.action == "store") { storeObject.process(); sendResponse({}); } } Can you please guide me, what would be the corresponding code for a Firefox Extension? I followed the Firefox Extension tutorial but that didn't help me