Firefox WebExtention API: TypeError: browser.browserAction is undefined [duplicate]
问题 This question already has an answer here: TypeError: [API] is undefined in content script or Why can't I do this in a content script? 2 answers While migrating my old Firefox add-on to WebExtension API, failed to understand while I am getting this error: TypeError: browser.browserAction is undefined Here is the manifest.json: { "manifest_version": 2, "name": "My Login", "version": "3.0", "description": "Login to my page", "homepage_url": "https://localhost", "icons": { "48": "icons/button-1