title: How to get current tab url while opening the popup [without tabs permission]
body: <p>I have a browserAction extension testing on chrome 31.0.1650.57. I want to get active tab url when the user click on the extension icon, save it and use it later.</p>
  
  <p>I am able to do that when using <strong>tabs</strong> permission. But this permission has a lot of power (that I don't need) and users are complaining about this.</p>
  
  <p>I followed the article to switch to <strong>activeTab</strong> permission <a href="http://developer.chrome.com/extensions/activeTab" rel="nofollow">http://developer.chrome.com/extensions/activeTab</a> but it only works when there is no popup. As you can see in the <strong><a href="http://developer.chrome.com/extensions/examples/api/browserAction/make_page_red.zip" rel="nofollow">make_page_red</a></strong> example. </p>
  
  <pre>
  chrome.browserAction.onClicked.addListener(function(tab) {
    // No tabs or host permissions needed!
    console.log("★ tab.url", tab.url);
  });
  </pre>
  
  <p>You can check by changing the <strong><a href="http://developer.chrome.com/extensions/examples/api/browserAction/make_page_red.zip" rel="nofollow">make_page_red</a></strong> example manifest file to add a default popup like this:</p>
  
  <pre>
  {
    "name": "Page Redder",
    "description": "Make the current page red",
    "version": "2.0",
    "permissions": [
      "activeTab"
    ],
    "background": {
      "scripts": ["background.js"],
      "persistent": false
    },
    "browser_action": {
      "default_title": "Make this page red",
      "default_popup": "popup.html"  ←-------------------
  
    },
    "manifest_version": 2
  }
  </pre>
  
  <p>Now because I have a default popup the browserAction.onClicked listener is not called anymore.</p>
  
  <p><em>How can I get current tab url and still have my popup opening?</em></p>
  
  <p>Thanks</p>