title: Chrome Extension create new tab loop
body: <p>I made a Chrome Extension that loops through URLs and opens new tabs (about 12).  This is not distributed through the Web store and only has a few users who want this specific functionality.  Recently, it has stopped opening all the tabs and only opens 3 or 4 (this doesn't seem consistent -- sometimes it opens 3, sometimes it opens 4).  The relevant code is as follows:</p>
  
  <pre><code>for (key in mySites.open){
      if (motorclearSites.open[key]==false){
          chrome.tabs.create({'url': mySites.loginPages[key]});
      } else {
          chrome.tabs.update(mySites.open[key], {url: mySites.loginPages[key]});
      }
  }
  </code></pre>
  
  <p>By way of explanation, mySites.open[key] is boolean and tells me if that tab is already open (e.g. mySites.open['google'] = false).  If it isn't, then I open it.  If it is, then I update it.  mySites.loginPages[key] is the URL of the page that I want to have open in the new tab (e.g. mySites.loginPages['google'] = 'http://www.google.com');</p>
  
  <p>Anyway, if I remove chrome.tabs.create and just give it a console.log, it goes all the way through the loop and shows me all the URLs I want to open.  If I just run this as is, however, it gets through either the first three or the first four and does not open any other tabs.</p>
  
  <p>Any ideas on what I might do to fix this?</p>