title: How do I pass back data from a remote window to a chrome extension's background page?
body: <p>I have a chrome extension, and from my background page I open a remote window:</p>
  
  <pre><code>chrome.windows.create({
          type : 'popup',
          url : "https://www.example.com/mypage.html"
      }, function(newWindow) {
  
      });
  </code></pre>
  
  <p>On my remote page (<a href="https://www.example.com/mypage.html" rel="noreferrer">https://www.example.com/mypage.html</a>) I am waiting for the user to perform an action. When this action is performed, I need to pass back to the extension some data.</p>
  
  <p>How can I do this? I could not find anything relevant in the docs (<a href="http://developer.chrome.com/extensions/messaging.html" rel="noreferrer">http://developer.chrome.com/extensions/messaging.html</a>)</p>