title: window.print() blocks window.open(..)
body: <p>I am trying to call window.open(..) and then window.print(). No matter what I do the window.open stuck till the print window is closed.</p>
  <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
  <div class="snippet-code">
  <pre class="snippet-code-html lang-html prettyprint-override"><code>&lt;script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.3.1/jquery.min.js"&gt;&lt;/script&gt;
  &lt;button onclick="PopupPrint();" class="btn btn-primary"&gt; Print &lt;/button&gt;
  
  &lt;script&gt;
    function PopupPrint() {
      $.when(Popup()).done(function() {
        window.print();
      });
    }
  
    function Popup() {
      window.open("https://google.com", "_blank");
    }
  &lt;/script&gt;</code></pre>
  </div>
  </div>
  </p>
  <p>Is there a workaround to get this done?</p>