e2email-org / e2email

E2EMail is a simple Chrome application - a Gmail client that exchanges OpenPGP mail.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Storing files from a Chrome App

koto opened this issue · comments

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

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.