e2email-org / e2email

E2EMail is a simple Chrome application - a Gmail client that exchanges OpenPGP mail.
Apache License 2.0
806 stars 62 forks source link

Storing files from a Chrome App #17

Closed koto closed 8 years ago

koto commented 8 years ago

There is no direct way of storing dynamically created files (e.g. decryped PDF attachments) from a Chrome App I know of. Creating a Blob URL and clicking it doesn't work in Chrome. We might need to implement a Webview-based workaround - https://groups.google.com/a/chromium.org/forum/#!topic/chromium-apps/O-qk197U36Y

koto commented 8 years ago

Experiment shows that blob URLs might be OK, and it didn't work because Angular didn't trust the blob: protocol and prefixed it with unsafe:. It might be easier and just require $sce.trustAsUrl call on the URL.

koto commented 8 years ago

Fixed in #26.