title: chrome.tabs.query(object) doesn't match definition
body: <p>I am trying to grab all tabs of the current window and loop through them.</p>
  
  <p>currently using code:</p>
  
  <pre><code>chrome.tabs.query({currentWindow: true}, function(result) {
      result.forEach(function(tab) {
          do stuff here;
      });
  });
  </code></pre>
  
  <p>I have permissions for 'tabs' in the manifest.</p>
  
  <p>It is throwing the error: "Error: Invocation of form tabs.query(object) doesn't match definition tabs.query(object queryInfo, function callback) at..."</p>
  
  <p>I am confused as I clearly have the object and a callback function. I also see elsewhere that it can be done with a promise instead as:</p>
  
  <pre><code>var query = chrome.tabs.query({currentWindow: true});
  query.then(function(tabs) {
      tabs.forEach(function(tab) {
          do stuff here;
      });
  });
  </code></pre>
  
  <p>But this throws the same error. Any ideas?</p>