josscrowcroft/javascript-sandbox-console — Issue #5: Uncaught Error: QUOTA_EXCEEDED_ERR for localStorage
Author: pdeschen
Created: 2011-10-21 15:07:45+00:00
State: open

Got the following error while interacting with the sandbox:

```javascript
backbone-localStorage.min.js:8Uncaught Error: QUOTA_EXCEEDED_ERR: DOM Exception 22
_.extend.updatebackbone-localStorage.min.js:8
Backbone.syncbackbone-localStorage.min.js:8
f.extend.savebackbone.min.js:12
Sandbox.Model.Backbone.Model.extend.addHistorysandbox-console.js:86
Sandbox.Model.Backbone.Model.extend.evaluatesandbox-console.js:146
Sandbox.View.Backbone.View.extend.keydownsandbox-console.js:307
Njquery-1.6.1.min.js:16
f.event.handlejquery-1.6.1.min.js:17
f.event.add.i.handle.kjquery-1.6.1.min.js:16

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?