Communicate between scripts in the background context (background script, browser action, page action, options page, etc.)
Communicating with a page in the background context Pages which are open in the background context include: background pages/scripts(MDN) event pages (Firefox does not support event pages. All manifest.json background pages remain loaded at all times.) browser action popups(MDN) page action popups(MDN) options pages(MDN1, MDN2) (in a popup, a tab, or window) sidebar action pages … Read more