title: Window is not allowed to navigate Top-frame navigations to data URLs
body: <p>Earlier following code would open a pdf file in a new window.</p>
  
  <pre><code>var pdfDocument = "data:application/pdf;base64," + data;
  window.open(pdfDocument);
  </code></pre>
  
  <p>After updating chrome, it seems to stop working. Appranely, chrome removed Top-frame navigations to data URLs.</p>
  
  <p>How can I solve my issue now? I need to open this pdf in a new window. Any help will be appreciated.</p>
  
  <p><strong>UPDATE</strong></p>
  
  <p>Solved it using iFrame. Thanks to <a href="https://stackoverflow.com/a/45495974/1987020">Pedro</a> for giving me the idea.</p>
  
  <pre><code>&lt;iframe id="ManualFrame"
          frameborder="0"
          style="border:0"
          allowfullscreen&gt;
  &lt;/iframe&gt;
  
  &lt;script&gt;
      $(function () {
          setManualFrame();
      });
  
      function setManualFrame() {
          $("#ManualFrame").attr("height", screen.height);
          $("#ManualFrame").attr("width", screen.width);
          $("#ManualFrame").attr("src", "data:application/pdf;base64," + '@ViewBag.pdf_base64_data');
      }
  &lt;/script&gt;
  </code></pre>