title: How do you use chrome.tabs.getCurrent to get the page object in a Chrome extension?
body: <p>The code is meant to output the current tab object for the page the user is viewing to the console but it just outputs undefined. It's run from within a browser action page.</p>
  
  <pre><code>chrome.tabs.getCurrent( function(tab){
      console.log(tab);
  } );
  </code></pre>
  
  <p>I've looked at the <a href="http://code.google.com/chrome/extensions/tabs.html#method-getCurrent" rel="noreferrer">documentation</a>  and as far as I can tell the code seems to match what it says.</p>