[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 15:11:07 PST 2011


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


Brady Eidson <beidson at apple.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
            Summary|window.localStorage should  |window.localStorage should
                   |throw SECURITY_ERR when     |return undefined if
                   |localStorage is disabled    |LocalStorage is 100%
                   |                            |disabled (right now it
                   |                            |returns null)




--- Comment #17 from Brady Eidson <beidson at apple.com>  2011-12-02 15:11:07 PST ---
(In reply to comment #16)
> Indeed. Note in particular this paragraph from the conformance subsection of the HTML standard:
> 
> "When support for a feature is disabled (e.g. as an emergency measure to mitigate a security problem, or to aid in development, or for performance reasons), user agents must act as if they had no support for the feature whatsoever, and as if the feature was not mentioned in this specification. For example, if a particular feature is accessed via an attribute in a Web IDL interface, the attribute itself would be omitted from the objects that implement that interface — leaving the attribute on the object but making it return null or throw an exception is insufficient."

Thanks Hixie!

Retitling this bug to reflect the real problem which is that we return null instead of undefined in this case.

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