-
Notifications
You must be signed in to change notification settings - Fork 3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
sessionStorage test issue #423
Comments
Thank you. :) Good call. You can either do a pull req or I'll get to this later. |
closed by #424 |
npmcomponent
pushed a commit
to npmcomponent/componentizr-modernizr
that referenced
this issue
Jan 8, 2014
I changed the test for sessionStorage to the same test as for localStorage, fixing the issue described in the thread linked above.
patrickkettner
pushed a commit
to patrickkettner/Modernizr
that referenced
this issue
Feb 22, 2015
I changed the test for sessionStorage to the same test as for localStorage, fixing the issue described in the thread linked above.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hey!
Watching the code of Modernizr v2.1pre I notice you have different tests for localStorage and sessionStorage.
The test for sessionStorage will return true even in Safari's private browsing mode. That's not correct, as web
storage is prohibited in that mode and will throw a "QUOTA_EXCEEDED_ERRROR DOM Exception 22" exception.
However, the test for localStorage is correct and will return false, and the same test should be applied to sessionStorage.
The text was updated successfully, but these errors were encountered: