[Webkit-unassigned] [Bug 56703] window.localStorage should throw SECURITY_ERR when localStorage is disabled

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Fri Dec 2 12:01:18 PST 2011


https://bugs.webkit.org/show_bug.cgi?id=56703





--- Comment #14 from opendarwin at lapcatsoftware.com  2011-12-02 12:01:18 PST ---
As background, if that helps, I discovered the difference with the spec while working on this bug:

https://bugs.webkit.org/show_bug.cgi?id=56354 Web Inspector: empty, non-functional window

Although it's true that there's a "may" in step 1, there's a "must" prefacing the steps, and if you go through all of the steps, it seems as far as I can tell that the only options are to throw an exception or return a local storage object. Returning null doesn't seem to be a valid option according to the spec.

I should note that in my experience of running Safari with local storage disabled, which I continue to do to this day, the choice is usually not between throwing an exception or having a web site work correctly. The web sites just assume they can use local storage and don't even check for null, so the choice is between throwing an exception or getting a javascript error.

-- 
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.



More information about the webkit-unassigned mailing list