Skip to content
This repository has been archived by the owner on Feb 17, 2021. It is now read-only.

QuotaExceededError: DOM Exception 22: An attempt was made to add something to storage that exceeded the quota. #86

Closed
jpatel3 opened this issue Apr 29, 2014 · 4 comments
Labels
Milestone

Comments

@jpatel3
Copy link

jpatel3 commented Apr 29, 2014

Fails with javascript error while running in Safari Private mode

Browser - Safari
Mode - Private
Version - Version 6.1 (7537.71)

Steps to reproduce -

  1. Open safari in private mode
  2. Run demo - http://linkedin.github.io/hopscotch/
  3. Check the Console for javascript error -
    QuotaExceededError: DOM Exception 22: An attempt was made to add something to storage that exceeded the quota.

on 'setState' function while saving state in sessionStorage.

@jpatel3
Copy link
Author

jpatel3 commented Apr 29, 2014

@timlindvall timlindvall added the bug label May 6, 2014
@timlindvall
Copy link
Collaborator

Thanks for the info! Hmm... every attempt to write to sessionStorage should be going thru utils.setState() so we should be able to add a try/catch check there and fall back to cookies on error (and reset the hasSessionStorage flag so we don't bother trying again).

Given this is a bugfix, I'm going to add this to the 0.2.1 milestone. Lemme know if there are any objections.

@timlindvall timlindvall added this to the 0.2.1 milestone May 6, 2014
@jpatel3
Copy link
Author

jpatel3 commented May 6, 2014

Yup, sounds good. Let me know if I can be any help!

@kate2753
Copy link
Contributor

kate2753 commented Jun 5, 2014

PR with the fix pulled in. This will be included in 0.2.1 release

@kate2753 kate2753 closed this as completed Jun 5, 2014
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

3 participants