title: XMLHttpRequest not working in google chrome extension
body: <p>I have been breaking my head over this for quite some time now.I am trying to send an xmlhttprequest to google and log the corresponding data into my console.
  My code:</p>
  
  <pre><code>sendRequest();
  function sendRequest()
   {
                var req = new XMLHttpRequest();
  req.open(
      "GET",
      "http://www.google.com",
      true);
  
  req.send(null);
  console.log(req.responseText);
   }
  </code></pre>
  
  <p>I have added permissions in my manifest.json. However when i debug it prints nothing. Just an empty line. What am i doing wrong here.</p>