The following code in a popup window loaded by “browser.windows.create({url:url, type: “popup”/, height: 600, width: 600/});” fails to obtain the manifest object because “browser” is undefined. Why is browser undefined in this update popup and how do I define it? Is there a magic global .js file that I am supposed to include in the HTML file?
var manifest=browser.runtime.getManifest();
Note: with “browser” undefined in the update popup js file, many other useful operations also cannot be done, like sending messages.