title: Chrome Browser Action click not working
body: <p>I am trying to create chrome extension, however my <a href="http://code.google.com/chrome/extensions/browserAction.html" rel="noreferrer">browser action</a> click does not work! I've tried pretty much everything. Here is my setup:</p>
  
  <p>manifest.json:</p>
  
  <pre><code>{
  "name": "blah",
  "version": "1.0",
  "description": "blah",
  "browser_action": {
    "default_icon": "icon1.png",
    "popup": "popup.html"
   },  
  "permissions": [
    "bookmarks",
    "tabs",
    "http://*/*", 
    "https://*/*"    
  ],
  "background_page": "background.html"
  }
  </code></pre>
  
  <p>popup.html:</p>
  
  <pre><code>&lt;html&gt;
  &lt;head&gt;
  &lt;script&gt;
  &lt;!-- Try adding the listener in popup.html  --&gt;
      chrome.browserAction.onClicked.addListener( function(tab){
      console.log("Hello from popup"); // This does not show up either
      } );
   &lt;/script&gt;
  &lt;/head&gt;&lt;body&gt;
   Hello
  &lt;/body&gt;
  &lt;/html&gt;
  </code></pre>
  
  <p>background.html:</p>
  
  <pre><code>&lt;html&gt;
  &lt;head&gt;
  &lt;script&gt;
  console.log("Background.html"); // This gets displayed. O.K.
  
  function hello() {
    console.log("HELLO"); // THIS NEVER GETS DISPLAYED
  }
  
  // Supposed to Called when the user clicks on the browser action icon.
  chrome.browserAction.onClicked.addListener(hello); 
  &lt;/script&gt;
  &lt;/head&gt;
  &lt;/html&gt;
  </code></pre>
  
  <p>But no matter how hard i click on the Icon nothing happens and "HELLO" is not printed out in the console!</p>
  
  <p>I am using Chrome 4.0.249.43. I installed the Beta version BUT it is exactly the same as the released version (same verion number). Could that be a problem?</p>