title: HTML5 Object tag with base64 data content causes Chrome to crash
body: <p>I am using the HTML5 FileReader to read a local file.  I then want to immediately display the file contents within the browser, prior to uploading to the server.</p>
  
  <p>I read the file, and attempt to display it, as follows:</p>
  
  <pre><code>var reader = new FileReader();
      reader.onloadend = function () {
          _moleculefilestream = reader.result;
          _molecule.filename = filelist[0].name;
          var filetype = _molecule.filename.substring(_molecule.filename.length - 3);
          var html = '';
          if (filetype == 'jpg' || filetype == 'gif' || filetype == 'png' || filetype == 'tif' || filetype == 'bmp') {
              html += '&lt;img src="' + reader.result + '" /&gt;';
          }
          else {
              html += '&lt;object id="zzzxxx" data="' + reader.result + '"';
              if (filetype.toLowerCase() == 'pdf') {
                  // For pdf docs, specify a height and width
                  html += ' width="770" height="350"';
              }
              html += '&gt;';
              html += '&lt;/object&gt;';
          }
          alert('we get here fine');
          $('#molecule-docviewer').html(html);
          alert('we have crashed by this point');
          MarkMoleculeAsDirty();
      }
      reader.readAsDataURL(filelist[0]); 
  </code></pre>
  
  <p>When I upload a pdf up to around 1.5Mb in Chrome, it all works fine.  When I try uploading at 1.5Mb or larger, Chrome (V15) crashes with an "aw snap" message.  It displays the "we get here fine" message, but crashes on the following line.</p>
  
  <p>Anyone got any bright ideas on how to fix or workaround?  Thanks.</p>