Remove popup from your browser_action section of the manifest and use background pages along with browser Action in the background script.
chrome.browserAction.onClicked.addListener(function(tab) { alert('icon clicked')});
More Related Contents:
- How to access the webpage DOM rather than the extension page DOM?
- How can I get the URL of the current tab from a Google Chrome extension?
- How to stop CORB from blocking requests to data resources that respond with CORS headers?
- How can I open my extension’s pop-up with JavaScript?
- Since v38, Chrome extension cannot load from HTTP URLs anymore, workaround?
- Detect Chrome extension first run / update
- Modifying the built-in newtab page
- Start an external application from a Google Chrome Extension?
- Chrome Extension Content Script on https://chrome.google.com/webstore/
- Chrome Extension: how to capture selected text and send to a web service
- Where does Chrome store extensions?
- How can I get the current tab URL for chrome extension?
- Content script matching top-level domains like all google.*
- How to download a CRX file from the Chrome web store for a given ID? [closed]
- How can I enable my chrome extension in incognito mode?
- Insert an image in chrome extension
- How to disable (gray out) page action for Chrome extension?
- Inject HTML into a page from a content script
- chrome.identity User Authentication in a Chrome Extension
- Can I modify outgoing request headers with a Chrome Extension?
- Is it possible to inject a javascript code that OVERRIDES the one existing in a DOM? (e.g default alert function)
- Cross-origin request in a content script is blocked by CORB despite the correct CORS headers
- How to make a cross-origin request in a content script (currently blocked by CORB despite the correct CORS headers)?
- Prevent chrome.notifications API from hiding my notification after a few seconds
- Google Chrome Extensions – Open New Tab when clicking a toolbar icon
- What does “http://*/*”, “https://*/*” and “” mean in the context of Chrome extension’s permissions
- How can I detect the current tab’s mime type in a Google Chrome extension?
- Chrome Console SameSite Cookie Attribute Warning
- Passing message from background.js to popup.js
- Accessing `window`/DOM/HTML of the webpage from the extension