title: chrome.tabs.create - callback function never called
body: <p>I want to create a new tab using Chrome Extension and when tab is loaded to show <code>tab.id</code>. Page is loaded but callback function is not worked (alert with <code>tab.id</code> is now showed).</p>
  
  <p>The <em>background.js</em> file:</p>
  
  <pre><code>chrome.tabs.create({'url': 'http://www.google.com'}, function(tab){ alert(tab.id) })
  </code></pre>
  
  <p>The <em>manifest.json</em> file:</p>
  
  <pre><code> {
       "name": "Test",
       "version": "1.0",
       "description": "Test plugin",
       "browser_action": {
           "default_popup": "popup.html",
           "default_icon":"icon.png"
       },
       "background": {
           "scripts": ["background.js"]
       },
       "manifest_version":2,
       "permissions": [
            "tabs",
            "http://*.facebook.com/*",
            "http://*.google.com/*",
            "storage"
       ]
  }
  </code></pre>
  
  <p>The <em>popup.html</em> file:</p>
  
  <pre><code>&lt;html&gt;
    &lt;head&gt;
      &lt;title&gt;Test tabs&lt;/title&gt;
    &lt;/head&gt;
    &lt;body&gt;
      &lt;script type="text/javascript" src=/background.js"&gt;&lt;/script&gt;
    &lt;/body&gt;
  &lt;/html&gt;
  </code></pre>
  
  <p>What can be a problem?</p>