<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugs.webkit.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.4.1"
          urlbase="https://bugs.webkit.org/"
          
          maintainer="admin@webkit.org"
>

    <bug>
          <bug_id>129890</bug_id>
          
          <creation_ts>2014-03-07 10:14:40 -0800</creation_ts>
          <short_desc>localStorage keys are not enumerable</short_desc>
          <delta_ts>2021-01-04 10:57:33 -0800</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>WebKit</product>
          <component>DOM</component>
          <version>528+ (Nightly build)</version>
          <rep_platform>All</rep_platform>
          <op_sys>All</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          <see_also>https://bugs.webkit.org/show_bug.cgi?id=166835</see_also>
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Mariusz Nowak">medikoo+webkit.org</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>ashvayka</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>988207</commentid>
    <comment_count>0</comment_count>
    <who name="Mariusz Nowak">medikoo+webkit.org</who>
    <bug_when>2014-03-07 10:14:40 -0800</bug_when>
    <thetext>localStorage.foo = &apos;bar&apos;;
localStorage.foo; // &apos;bar&apos;
Object.keys(localStorage); // [&apos;foo&apos;]
localStorage.propertyIsEnumerable(&apos;foo&apos;); // false (should be true)

Strictly Webkit bug, all other engines behave ok.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1717167</commentid>
    <comment_count>1</comment_count>
    <who name="Alexey Shvayka">ashvayka</who>
    <bug_when>2021-01-04 10:57:33 -0800</bug_when>
    <thetext>(In reply to Mariusz Nowak from comment #0)
&gt; Strictly Webkit bug, all other engines behave ok.

Thank you for the report!

WebKit&apos;s getOwnPropertySlot() used to unconditionally set PropertyAttribute::DontEnum for named getter properties, causing this bug.
This was fixed in r210667.

WPT coverage: https://github.com/web-platform-tests/wpt/blob/dbc7edfaa96e559b9aa34a9c898a1ad54d877b58/webstorage/storage_enumerate.html#L53.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>