RESOLVED DUPLICATE of bug 119492 Bug 108755
Security DOM Exception with toDataURL of canvas drawn from SVG
https://bugs.webkit.org/show_bug.cgi?id=108755
Summary Security DOM Exception with toDataURL of canvas drawn from SVG
Jonathan Deutsch
Reported 2013-02-02 12:38:26 PST
Created attachment 186234 [details] repro case 1. Open attached svgtest.html from SVGtoDataURLBug.zip -or- 1. In JavaScript, Create a canvas element 2. use drawImage to draw a new Image() from an SVG source 3. call toDataURL() on the canvas I would expect to get a data URL with png contents of the image. Safari instead reports: SECURITY_ERR: DOM Exception 18: An attempt was made to break through the security policy of the user agent. This affects Tumult Hype: http://tumult.com/hype/
Attachments
repro case (2.84 KB, application/zip)
2013-02-02 12:38 PST, Jonathan Deutsch
no flags
Jonathan Deutsch
Comment 1 2013-02-02 12:38:58 PST
Adam Barth
Comment 2 2013-02-04 10:18:30 PST
SVG images are complicated and we're not smart enough to determine whether it's safe to return the result to JavaScript. We're conservative and always throw the exception.
Philip Rogers
Comment 3 2013-08-16 19:53:16 PDT
Fixed *** This bug has been marked as a duplicate of bug 119492 ***
Note You need to log in before you can comment on or make changes to this bug.