Open pdeschen opened 12 years ago
Thanks - what browser were you in?
Any ideas what commands were run that might have had an unusually large output?
I can think of several ways to limit the history to prevent this from happening which I'll look into.
I'm on Chrome. I don't know if the quota is set for the whole browser or on a key basis. Hence, if that's for the whole browser, data could come from any webapp. Otherwise, I don't recall typing a 5Mb full of javascript:-)
On a side note, maybe you could use the sessionStorage instead? I understand the idea of using a persistent localStorage but the sandbox might end up adding stuff forever. Another options would be to have a rolling history buffer like in a bash or something, with a configurable size. In fact, a flag could also be set during init to either use session or local storage (i.e. {persistentHistory: false})
Got the following error while interacting with the sandbox. I will try to inspect the actual localStorage content and report back. According to the spec, localStorage should be 5Mb which seems plenty enough for the sandbox history!
Maybe consider compress content before adding to the storage?