title: window.open(url).print() not working in Safari
body: <p>I have an issue while printing in the Safari browser. When I use <code>window.open(url)</code> and try to print this newly opened URL, it tries to print a blank page. </p>
  
  <p>As suggested in few other sites, I tried to set a delay of 3000ms. Like,</p>
  
  <pre><code>window.open(url)
  setTimeout(print, 3000);
  </code></pre>
  
  <p>This tries to print the previous window and not the new tab open.<br>
  I have tried using <code>window.focus()</code> before printing. It didn't help.</p>