title: Javascript window.print() in chrome, closing new window or tab instead of cancelling print leaves javascript blocked in parent window
body: <p>In the application I work on, we have several different places a user can print from.  In all these cases we are using the same workflow of opening a new window(or tab), writing whatever we need to print to the document of the new window, and then we call</p>
  
  <pre><code>    $(w.document).ready(function () {
          w.focus();
          w.print();
          w.close();
      });  
  </code></pre>
  
  <p>The issue I'm seeing is that in Chrome, if I close the tab or window that is opened for the print preview instead of clicking the cancel button, Chrome is still blocking the javascript on my parent window.  </p>
  
  <p>It is similar to the issue described here:
  <p>
   <a href="https://stackoverflow.com/questions/14462163/google-chrome-blocks-ajax-requests-when-print-preview-is-opened-on-child-window?rq=1">Google Chrome blocks ajax requests when print preview is opened on child window</a>
  <p>
  We are experiencing this issue as well, but I believe this is a result of how we are implementing printing in a new window and the way Chrome's print preview works.  In IE and Firefox, the print window displays the modal dialog, and you are not able to do anything in the parent window until the print window is closed.  Similarly chrome is blocking use of the parent window until the print preview is cancelled.  However I would expect closing that tab or window to work the same as cancelling the print. 
  <br/>
  Has anyone else had this issue or know of a good solution?</p>
  
  <p>Thank you!</p>