title: How to display data URI for PDF in Chrome App?
body: <p>I have a data URI generated from a JavaScript PDF library (jsPDF) that seems to be OK, because when I display it with console.log and paste it into a browser URL field, it works. However, I can't get it to display from within the Chrome App, either in a Chrome App window or an ordinary browser window. The URI starts like this:</p>
  
  <pre><code>var uri = "data:application/pdf;base64,JVBERi0xLjMK ...";
  </code></pre>
  
  <p>When I do this:</p>
  
  <pre><code>chrome.app.window.create(uri);
  </code></pre>
  
  <p>The window opens, but it is trying to load the URI:</p>
  
  <p>chrome-extension://gapkhdeaendagkjpchhemfhbpfcjgmep/data:application/pdf;base64,JVBERi0xLjMK ...</p>
  
  <p>and in the window there is the message "This webpage is not found".</p>
  
  <p>When I do this:</p>
  
  <pre><code>window.open(uri);
  </code></pre>
  
  <p>or</p>
  
  <pre><code>window.open(chrome.runtime.getURL(uri));
  </code></pre>
  
  <p>absolutely nothing happens. No browser window or tab opens, and no message is written to the console.</p>
  
  <p>Has anyone done this?</p>