title: jQuery and Canvas.toDataURL
body: <p>I'm working on a script, and a small part of that involves taking a canvas and converting it to a downloadable image.  To do this, I do:</p>
  
  <pre><code>var thumb_jpeg = thumbnail.toDataURL("image/jpeg");
  $("#" + options.dest).attr('src',thumb_jpeg);
  </code></pre>
  
  <p>...where thumbnail is a canvas tag and options.dest is the name of an img id.</p>
  
  <p>This code works perfectly in Chrome, but when I try it in Firefox, Firebug throws up this error:</p>
  
  <pre><code>Security error" code: "1000
  var thumb_jpeg = thumbnail.toDataURL("image/jpeg");
  </code></pre>
  
  <p>I would link to the whole script, but everything is hosted on my computer.  Does anyone have any idea what this might mean?</p>
  
  <p>Thanks!
  Jeff</p>