gsklee / ngStorage

localStorage and sessionStorage done right for AngularJS.
MIT License
2.33k stars 461 forks source link

Safari 9.1 - QuotaExceededError when using sessionStorage in private browsing mode #210

Closed OscarBarrett closed 8 years ago

OscarBarrett commented 8 years ago

The comment here mentions that localStorage appears to be available in Safari's private browsing mode when it is not.

The same seems to apply for sessionStorage (window['sessionStorage'] is defined) but it is not actually supported. QuotaExceededError: DOM Exception 22 is thrown.

Note that Modernizr correctly reports it as false (Modernizr.sessionstorage).

gsklee commented 8 years ago

Fixed by #213.