browserstate / history.js

History.js gracefully supports the HTML5 History/State APIs (pushState, replaceState, onPopState) in all browsers. Including continued support for data, titles, replaceState. Supports jQuery, MooTools and Prototype. For HTML5 browsers this means that you can modify the URL directly, without needing to use hashes anymore. For HTML4 browsers it will revert back to using the old onhashchange functionality.
http://browserstate.github.com/history.js/demo/
Other
10.75k stars 1.35k forks source link

Firefox: NS_ERROR_DOM_QUOTA_REACHED: Persistent storage maximum size reached #458

Open jacobraccuia opened 8 years ago

jacobraccuia commented 8 years ago

NS_ERROR_DOM_QUOTA_REACHED: Persistent storage maximum size reached

I get the above error in Firebug, running latest Mozilla 46.0.1, if I leave my site open after a long period of time. Closing the tab with the site open resolves the issue.

What can I do?

jacobraccuia commented 7 years ago

I modified line 2053 of the jquery.history.js and added the code 1014. Firefox throws a 1014 when persistent storage is reached. This fix for safari fixes for firefox too.

`if (e.code === DOMException.QUOTA_EXCEEDED_ERR || e.code === 1014) {`