Warning: This method has been deprecated. Use tabs.sendMessage()
instead.
Sends a single request to the content script(s) in the specified tab, with an optional callback to run when a response is sent back. The extension.onRequest
event is fired in each content script running in the specified tab for the current extension.
This is an asynchronous function that returns a Promise
.