Crypton / statusapp

A status application for small groups to keep each other in the loop
Mozilla Public License 2.0
16 stars 4 forks source link

Contact card sharing / export not working #203

Open devgeeks opened 9 years ago

devgeeks commented 9 years ago

This appears to be the mysterious and annoying "tainted canvas" issue.

The error is:

SecurityError: DOM Exception 18: An attempt was made to break through the security policy of the user agent.
toDataURL   index.js:418
(anonymous function)   index.js:418
dispatch   jquery.min.js:2:8071
handle   jquery.min.js:2:4772
dispatchEvent
sendClick   fastclick.js:307
onTouchEnd   fastclick.js:605
(anonymous function)   fastclick.js:110
daviddahl commented 9 years ago

This is different behavior from a local build. Sigh.

daviddahl commented 9 years ago

On my local build this is not an issue for sharing the card, I see the DOM exc. 18 because of CSP:

SecurityError: DOM Exception 18: An attempt was made to break through the security policy of the user agent. (anonymous function)crypton.js:19209 wscrypton.js:19209 doOpencrypton.js:17172 opencrypton.js:16023 probecrypton.js:15588 onOpencrypton.js:15609 onHandshakecrypton.js:15668 onPacketcrypton.js:15632 (anonymous function)crypton.js:15448 emitcrypton.js:14990 onPacketcrypton.js:16088 callbackcrypton.js:16968 (anonymous function)crypton.js:18495 forEach decodePayloadAsBinarycrypton.js:18494 decodePayloadcrypton.js:18258 onDatacrypton.js:16973 (anonymous function)crypton.js:16540 emitcrypton.js:14990 onDatacrypton.js:16694 onLoadcrypton.js:16765 onreadystatechangecrypton.js:16647

daviddahl commented 9 years ago

I'm going to bet that the incorrect WebView is in the build that we pushed to apple.

daviddahl commented 9 years ago

My dev environment is using Telerik WKWebView 0.6.0 which is not the one that is automatically pulled in when adding it via command line