rjurado01 commented on issue #79: Canvas gets tainted when drawn with an image 
using the custom scheme
URL: 
https://github.com/apache/cordova-plugin-wkwebview-engine/issues/79#issuecomment-595180449
 
 
   Same error, I have an image with this src: 
`"file:///var/containers/Bundle/Application/27131FF1-0862-4240-851F-FBDFFDDC47D4/HelloCordova.app/www/49dfd8c7f5effbcd57afcb1c060d6322.png"`
   
   When I run this code:
   
   ```js
   const image = document.getElementById("image");
   var canvas = document.getElementById("canvas");
   var ctx = canvas.getContext("2d");
   ctx.drawImage(image, 0, 0);
   ```
   
   I get this error: `SecurityError: The operation is insecure.` on call to 
`toDataURL`.
   
   Using UIWebview this code works.
   

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
[email protected]


With regards,
Apache Git Services

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to