localStorage disabled in Safari 5.1.2 in Private Browsing mode #11

austinjackson opened this Issue Dec 1, 2011 · 2 comments


None yet

3 participants

The localStorage check from Modernizr gives a false positive in Safari 5.1.2 when Private Browsing is enabled. I fixed it by using the following in the try block:

if (!!window.localStorage) {
localStorage.setItem('testKey', 1);
return true;
return false;

Sorry I didn't submit a change - have only had a github account for 5 minutes.

So this is still an issue ?
The ticket is open


Our test does that now, closing.

@pamelafox pamelafox closed this May 30, 2013
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment