You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cordova.apache.org by GitBox <gi...@apache.org> on 2020/03/05 11:25:55 UTC

[GitHub] [cordova-plugin-wkwebview-engine] rjurado01 commented on issue #79: Canvas gets tainted when drawn with an image using the custom scheme

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:
users@infra.apache.org


With regards,
Apache Git Services

---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@cordova.apache.org
For additional commands, e-mail: commits-help@cordova.apache.org