On 2/11/12 9:27 AM, Tankred Hase wrote: > Hi, > > I'v tried to stick the openpgp.js encryption logic in a Web Worker since > I encrypt fairly large files. Unfortunatly, this does not work with at > the moment, since the library directly accesses the "document" and > "window" objects several times (e.g. for window.crypto and > window.localStorage). > > It seems these objects aren't available to Web Workers due to > concurrency > issues: > http://www.html5rocks.com/en/tutorials/workers/basics/#toc-enviornment-features > > Does anyone have an idea how to work around this issue? Thank!
Can't the access to window.crypto and window.localStorage be made asyncronous, by abstracting a class to access all document.* and window.* functions? That way maybe the UI will not get frozen while under highly CPU intensive tasks? -naif _______________________________________________ http://openpgpjs.org

