-
beidson@apple.com authored
2008-04-09 Brady Eidson <beidson@apple.com> Reviewed by Adam Roben Per the HTML5 spec, enumerating a Storage object should walk the keys in the storage area, and should not return the built-in properties. Test: storage/domstorage/sessionstorage/enumerate-storage.html * bindings/js/JSLocationCustom.cpp: (WebCore::JSLocation::customGetPropertyNames): Removed the name from an unused parameter * bindings/js/JSStorageCustom.cpp: (WebCore::JSStorage::customGetPropertyNames): Copy all of the keys into the property names array * storage/Storage.idl: Add CustomGetPropertyNames LayoutTests: 2008-04-09 Brady Eidson <beidson@apple.com> Reviewed by Adam Roben Per the HTML5 spec, enumerating a Storage object should walk the keys in the storage area, and should not return the built-in properties. This test adds some keys to sessionStorage, enumerates the sessionStorage object, and logs the sorted result. It should *not* contain the built in properties of the Storage object * storage/domstorage/sessionstorage/enumerate-storage-expected.txt: Added. * storage/domstorage/sessionstorage/enumerate-storage.html: Added. git-svn-id: http://svn.webkit.org/repository/webkit/trunk@31759 268f45cc-cd09-0410-ab3c-d52691b4dbfc
f4283713