title: New tab with PDF - Download button not working on Chrome
body: <p>When user clicks on a button, I send a request to my server, and it sends back a pdf base64. </p>
  
  <p>Then I open it in a new tab, but the download button from <strong>Chrome</strong> preview does not work, when I click it there is no action. It works fine on Firefox.</p>
  
  <p>Chrome preview download button:</p>
  
  <p><a href="https://i.stack.imgur.com/yYprl.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/yYprl.png" alt="Chrome preview download button"></a></p>
  
  <p>Define variable <code>iframeHtml</code>:</p>
  
  <pre class="lang-js prettyprint-override"><code>let iframeHtml = `&lt;iframe
      id="ManualFrame"
      frameborder="0"
      style="border:0; overflow: hidden; margin: 0; height: 100%"
      allowfullscreen&gt;
  &lt;/iframe&gt;
  
  &lt;script&gt;
  setManualFrame();
  
  function setManualFrame() {
    document.getElementById('ManualFrame').setAttribute('height', screen.height);
    document.getElementById('ManualFrame').setAttribute('width', screen.width);
    document.getElementById('ManualFrame').setAttribute('src', "data:application/pdf;base64,${pdfBase64}");
  }
  &lt;/script&gt;`;
  </code></pre>
  
  <p>Then open it in a new tab:</p>
  
  <pre class="lang-js prettyprint-override"><code>let newWindow = window.open();
  newWindow.document.write(iframeHtml);
  </code></pre>
  
  <p>Chrome versions I've tested:<br>
  Version: <strong>67.0.3396.79 (Official Build) (64-bit)</strong><br>
  Version: <strong>66.0.3359.181 (Official Build) 32 bits</strong></p>