title: After calling chrome.tabs.query, the results are not available
body: <p>I'm creating (learning) an extension for Google Chrome.</p>
  
  <p>To debug some code, I inserted <code>console.log()</code>, as follows:</p>
  
  <pre><code>var fourmTabs = new Array();
  chrome.tabs.query({}, function (tabs) {
      for (var i = 0; i &lt; tabs.length; i++) {
          fourmTabs[i] = tabs[i];
      }
  });
  for (var i = 0; i &lt; fourmTabs.length; i++) {
      if (fourmTabs[i] != null)
          window.console.log(fourmTabs[i].url);
      else {
          window.console.log("??" + i);
      }
  }
  </code></pre>
  
  <p>It's very simple code: get all tabs info into an array of my own, and print some things.</p>
  
  <p>To check whether the code works as it should, I run the code. Here comes the problem:</p>
  
  <ul>
  <li>When I use breakpoints (via the Developer tools), the code runs fine.</li>
  <li>Without breakpoints, nothing is printed.</li>
  </ul>
  
  <p>Any idea why?</p>