Modernizr/Modernizr — Issue #423: sessionStorage test issue
Author: Deschtex
Created: 2011-12-02 18:58:29+00:00
State: open

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.