title: Chrome extension: sending a request form a background page to the popup
body: <p>I'm trying to make the background page communicate with the popup in a google chrome extension.</p>
  
  <p>I managed to make it work the other way around, but for some reason it doesn't work now.</p>
  
  <pre><code>// background.html
  chrome.tabs.getSelected(null, function(tab) {
          chrome.tabs.sendRequest(tab.id, {
              method: 'countDown',
              seconds: seconds,
              id: id
          }, function(response) {
              console.log(response.farewell);
          });
      });
  
  // popup.html
  chrome.extension.onRequest.addListener(function(request, sender, sendResponse) {
          console.log('request from background');
  
          if(request.method == 'countDown') {
              console.log(request.seconds);
  
              //countDown(request.id);
          }
  
          sendResponse({});
      });
  </code></pre>
  
  <p>The permissions are right (background, tabs), but it seems like the background is not sending out the request.</p>