title: Chrome extension disable page action popup
body: <p>I would like to use <a href="https://developer.chrome.com/extensions/pageAction#event-onClicked" rel="nofollow noreferrer">pageAction.onClicked</a>, The document says the event will not fire if there is a popup:</p>
  
  <blockquote>
    <p>Fired when a page action icon is clicked. This event will not fire if the page action has a popup.</p>
  </blockquote>
  
  <p>So I am looking for a way to disable the popup. Right now I tried something like this:</p>
  
  <pre><code>chrome.tabs.query({active: true}, function(tabs){
    chrome.pageAction.setPopup({
      tabId: tabs[0].id, popup: ''
    });
  });
  </code></pre>
  
  <p>I didn't specify default_pop in <code>manifest.json</code>.</p>
  
  <p>But this doesn't disable the popup, any advice?</p>
  
  <p>Related: <a href="https://stackoverflow.com/questions/20996655/chrome-extension-button-popup-stuck-open">Chrome extension button popup stuck open</a></p>