title: Bug with chrome.tabs.create in a loop
body: <p>On my Chrome extension <a href="https://chrome.google.com/webstore/detail/copy-all-urls/djdmadneanknadilpjiknlnanaolmbfk" rel="nofollow">Copy All Urls</a>, I've developed a "paste" feature to open all URL found in the clipboard, with one tab per url.</p>
  
  <p>But this feature doesn't works properly, sometime it works fine, sometimes it opens only a few subset of all URL that it should open.</p>
  
  <p>I suspect Chrome API, and more specifically <code>chrome.tabs.create</code> to be responsible for this mistake, so I wrote a little piece of code to test it :</p>
  
  <p><strong>popup.html :</strong></p>
  
  <pre><code>&lt;!doctype html&gt;
  &lt;html&gt;
  &lt;head&gt;
      &lt;meta charset="utf-8"&gt;
      &lt;script type="text/javascript" src="vendor/jquery-1.7.2_min.js"&gt;&lt;/script&gt;
      &lt;script type="text/javascript" src="popup.js"&gt;&lt;/script&gt;
  &lt;/head&gt;
  &lt;body&gt;
      &lt;button id="actionTest"&gt;Test&lt;/button&gt;
  &lt;/body&gt;
  &lt;/html&gt;
  </code></pre>
  
  <p><strong>popup.js :</strong></p>
  
  <pre><code>jQuery(function($){
      $('#actionTest').click(function(e){
          var urlList = ["http://stackoverflow.com/","http://en.wikipedia.org/wiki/Main_Page","http://www.codinghorror.com/blog/","http://nodejs.org/","https://github.com/","http://wallbase.cc/","http://www.chromium.org/Home","http://www.photoshoptuto.com/?s=test+chrome+tabs","http://www.youtube.com/","https://www.tumblr.com/","http://www.imdb.com/","http://www.flickr.com/","http://kickass.to/","https://www.dropbox.com/","http://fr.slideshare.net/","http://www.deviantart.com/","http://www.livejournal.com/","http://ohnotheydidnt.livejournal.com/82624099.html","http://www.etsy.com/","http://www.mediafire.com/","http://www.foxnews.com/","http://www.foxnews.com/politics/2013/10/21/obama-addresses-problems-with-health-care-website/"];
          $.each(urlList, function(key, val){
              chrome.tabs.create({ url: val}, function(tab){
                  // console.log('openned: '+tab.url);
              });
          });
      });
  });
  </code></pre>
  
  <p>As you can see, urlList contains 22 URL, but when I press the test button I not always have 22 new tabs openned.</p>
  
  <p>What's wrong ?
  Thanks</p>