Suppose I'm maintaining a WebExtension, with a Manifest V2 file. My extension has a background.js script which sets all sorts of things up. Now, I want to access arbitrary key-value pairs from my extension's manifest.json file, within the background.js script.
Is this possible? If so, how do I do that?
Note: In case it matters, the app is Thunderbird; and I'm not really maintaining a WebExtension, but that's complicated and out of scope.
chromedoesn't work in other apps. Shall I leave this question as is, or shall I adapt it to focus on the difference?chromeis available in Thunderbird as well as in Firefox. It contains the callback-based version of the API compatible with chrome extensions, including chrome.runtime.getManifest.