title: Add event listener to document opened in new window
body: <p>Is there anything that prevents me from adding a event listener to the window that results from a <code>window.open()</code> call?</p>
  <p>I am trying to set a handler function to be triggered on a visibility change event on the new document, but this handler function is not being called.</p>