<?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>19111</bug_id>
          
          <creation_ts>2008-05-18 12:22:01 -0700</creation_ts>
          <short_desc>Storage interface data should be removed when using delete</short_desc>
          <delta_ts>2008-05-18 16:52:45 -0700</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>WebKit</product>
          <component>WebCore Misc.</component>
          <version>528+ (Nightly build)</version>
          <rep_platform>PC</rep_platform>
          <op_sys>OS X 10.5</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <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>0</everconfirmed>
          <reporter name="Nicholas C. Zakas">webkit</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>beidson</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>80850</commentid>
    <comment_count>0</comment_count>
    <who name="Nicholas C. Zakas">webkit</who>
    <bug_when>2008-05-18 12:22:01 -0700</bug_when>
    <thetext>In sessionStorage, you should be able to remove data like this:

delete sessionStorage.name;

This doesn&apos;t work in WebKit, you using removeItem() works fine. The delete operator usage is supported in both Firefox 2+ and Internet Explorer 8.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>80858</commentid>
    <comment_count>1</comment_count>
    <who name="Brady Eidson">beidson</who>
    <bug_when>2008-05-18 14:30:42 -0700</bug_when>
    <thetext>In hitting up the spec to see if it mentions the delete storage.property; syntax as an alias for removeItem(property), I see that the specific mentioning of enumeration and property matching in general has been stricken.

I wonder when this happened?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>80859</commentid>
    <comment_count>2</comment_count>
    <who name="Brady Eidson">beidson</who>
    <bug_when>2008-05-18 14:40:34 -0700</bug_when>
    <thetext>If we decide to fix this, there&apos;s no reason it will be SessionStorage-only - it will be all Storage interfaces</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>80861</commentid>
    <comment_count>3</comment_count>
    <who name="Brady Eidson">beidson</who>
    <bug_when>2008-05-18 15:20:57 -0700</bug_when>
    <thetext>I did a little exploring into some recent revisions of the spec and tracked down why the enumeration stuff was removed.

I&apos;ve emailed WHATWG about that omission and also to raise the point about the delete syntax -
http://lists.whatwg.org/pipermail/whatwg-whatwg.org/2008-May/014848.html

In the meantime, I can&apos;t see the harm in supporting this...</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>80863</commentid>
    <comment_count>4</comment_count>
    <who name="Brady Eidson">beidson</who>
    <bug_when>2008-05-18 15:36:16 -0700</bug_when>
    <thetext>Hixie confirmed on IRC that the [XXX] placeholder in the storage interface is meant to imply delete support on removeItem().

I&apos;m adding this now while I have a few free cycles</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>80868</commentid>
    <comment_count>5</comment_count>
    <who name="Brady Eidson">beidson</who>
    <bug_when>2008-05-18 16:52:45 -0700</bug_when>
    <thetext>Landed r33565</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>