You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have an example on JSFiddle https://jsfiddle.net/1erhqu15/ that captures the document, crops it and then saves it as a PNG file. This works fine in Chrome & Firefox, but in Microsoft Edge I get a 'Security Error' thrown when getImageData() is called on the context of the canvas. Similarly, getImageData() throws a 'The operation is insecure' error when run on Safari V10.
Any thoughts on what could be causing the error?
Thanks,
Chris
The text was updated successfully, but these errors were encountered:
Hey, all browser's are taking precautions not to leak any information from the user's browsing context from the interpreted HTML. Firefox and Chrome handle this well, WebKit throws a hard error when reading from the canvas. I haven't looked into Edge much, so I can't tell for sure, but I'm assuming that this is a similar issue.
If you are interested in finding out more, you could go step by step, by
start reading back from an empty canvas, then
painting a simple SVG to the canvas then reading back,
rendering a SVG with an empty , reading back, and finally
I have an example on JSFiddle https://jsfiddle.net/1erhqu15/ that captures the document, crops it and then saves it as a PNG file. This works fine in Chrome & Firefox, but in Microsoft Edge I get a 'Security Error' thrown when getImageData() is called on the context of the canvas. Similarly, getImageData() throws a 'The operation is insecure' error when run on Safari V10.
Any thoughts on what could be causing the error?
Thanks,
Chris
The text was updated successfully, but these errors were encountered: