• jorlow@chromium.org's avatar
    2009-08-10 Jeremy Orlow <jorlow@chromium.org> · 0888f443
    jorlow@chromium.org authored
            Reviewed by Brady Eidson.
    
            Change ___Storage.key() to match current spec behavior.
            https://bugs.webkit.org/show_bug.cgi?id=28112
    
            The current WebStorage spec says that ___Storage.key() should return null when
            the index is out of bounds, rather than an exception.  A bunch of logic can be
            simplified after this change.
    
            * bindings/js/JSStorageCustom.cpp:
            (WebCore::JSStorage::getPropertyNames):
            * bindings/v8/custom/V8StorageCustom.cpp:
            (WebCore::V8Custom::v8StorageNamedPropertyEnumerator):
            * storage/Storage.cpp:
            (WebCore::Storage::key):
            * storage/Storage.h:
            * storage/Storage.idl:
            * storage/StorageArea.h:
            * storage/StorageAreaImpl.cpp:
            (WebCore::StorageAreaImpl::key):
            * storage/StorageAreaImpl.h:
            * storage/StorageMap.cpp:
            (WebCore::StorageMap::key):
            * storage/StorageMap.h:
    
    2009-08-10  Jeremy Orlow  <jorlow@chromium.org>
    
            Reviewed by Brady Eidson.
    
            ___Storage.key() changed to match new spec behavior; update layout tests.
            https://bugs.webkit.org/show_bug.cgi?id=28112
    
            The current WebStorage spec says that ___Storage.key() should return null when
            the index is out of bounds, rather than an exception.  Change the one layout
            test that verified this behavior.
    
            * storage/domstorage/localstorage/simple-usage-expected.txt:
            * storage/domstorage/localstorage/simple-usage.html:
            * storage/domstorage/sessionstorage/simple-usage-expected.txt:
            * storage/domstorage/sessionstorage/simple-usage.html:
    
    
    
    git-svn-id: http://svn.webkit.org/repository/webkit/trunk@47020 268f45cc-cd09-0410-ab3c-d52691b4dbfc
    0888f443
StorageMap.h 2.43 KB