[Webkit-unassigned] [Bug 56703] window.localStorage should return undefined if LocalStorage is 100% disabled (right now it returns null)

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Fri Dec 2 16:16:57 PST 2011


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





--- Comment #19 from opendarwin at lapcatsoftware.com  2011-12-02 16:16:57 PST ---
(In reply to comment #15)
> >Returning null doesn't seem to be a valid option according to the spec.
> 
> This made me realize that yes, returning null for a missing feature is incorrect behavior.  We should be returning undefined here, which is the appropriate behavior for any user agent and any missing feature.

In light of Hixie's comment, that sounds fine to me.

> How is it you run Safari with LocalStorage disabled?  AFAIK, Safari doesn't support doing this.  Twiddling the hidden WebKit default yourself gets you in to unsupported power-user land.

I'm not looking for support. I just noticed a bug and filed it. :-)

-- 
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