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

<bugzilla version="5.0.4"
          urlbase="https://www.w3.org/Bugs/Public/"
          
          maintainer="sysbot+bugzilla@w3.org"
>

    <bug>
          <bug_id>25008</bug_id>
          
          <creation_ts>2014-03-11 21:02:22 +0000</creation_ts>
          <short_desc>Add delete cookie method</short_desc>
          <delta_ts>2014-07-13 20:06:19 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>Browser Test/Tools WG</product>
          <component>WebDriver</component>
          <version>unspecified</version>
          <rep_platform>All</rep_platform>
          <op_sys>All</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>WONTFIX</resolution>
          
          
          <bug_file_loc>https://dvcs.w3.org/hg/webdriver/raw-file/561e13778acb/webdriver-spec.html#methods-14</bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P2</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          <blocked>20860</blocked>
          <everconfirmed>1</everconfirmed>
          <reporter name="Marc Fisher">fisherii</reporter>
          <assigned_to name="Browser Testing and Tools WG">public-browser-tools-testing</assigned_to>
          <cc>barancev</cc>
    
    <cc>botalov.andrey</cc>
    
    <cc>dburns</cc>
    
    <cc>mike</cc>
          
          <qa_contact name="Browser Testing and Tools WG">public-browser-tools-testing</qa_contact>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>102216</commentid>
    <comment_count>0</comment_count>
    <who name="Marc Fisher">fisherii</who>
    <bug_when>2014-03-11 21:02:22 +0000</bug_when>
    <thetext></thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>102217</commentid>
    <comment_count>1</comment_count>
    <who name="David Burns :automatedtester">dburns</who>
    <bug_when>2014-03-11 21:08:53 +0000</bug_when>
    <thetext>In addCookie[1] there is prose saying that if have a date in the past we should delete it. Do you think we need a new method on the remote end rather than just have the addCookie(date=1970-01-01)?



[1] https://dvcs.w3.org/hg/webdriver/raw-file/tip/webdriver-spec.html#methods-14</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>102329</commentid>
    <comment_count>2</comment_count>
    <who name="Marc Fisher">fisherii</who>
    <bug_when>2014-03-13 22:46:48 +0000</bug_when>
    <thetext>The current Selenium WebDriver API has support for deleting cookies by name and for deleting all currently visible cookies. Deleting cookies by name could easily be accomplished with your proposed mechanism, so may not need to be carried over. However, it is often useful and convenient to be able to delete all visible cookies with a single call, so I would like to have this method.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>102531</commentid>
    <comment_count>3</comment_count>
    <who name="Alexei Barantsev">barancev</who>
    <bug_when>2014-03-18 06:02:26 +0000</bug_when>
    <thetext>We need a method to delete a cookie by name AND path too (because it is possible to set a cookie with the same name on a subpath).</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>108889</commentid>
    <comment_count>4</comment_count>
    <who name="David Burns :automatedtester">dburns</who>
    <bug_when>2014-07-12 21:58:15 +0000</bug_when>
    <thetext>Since addCookie takes a cookie object, the cookie that needs deleting will need to have all the necessary keys filled with the date in the past.

Agreed in the F2F not to add a separate endpoint and method for this.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>108893</commentid>
    <comment_count>5</comment_count>
    <who name="Andrey Botalov">botalov.andrey</who>
    <bug_when>2014-07-13 07:45:24 +0000</bug_when>
    <thetext>It looks like the spec currently doesn&apos;t have endpoint to neither delete one cookie, nor to delete all cookies.

However, currently Webdriver does have endpoint to delete all cookies.

Is it intentional?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>108896</commentid>
    <comment_count>6</comment_count>
    <who name="David Burns :automatedtester">dburns</who>
    <bug_when>2014-07-13 20:06:19 +0000</bug_when>
    <thetext>(In reply to Andrey Botalov from comment #5)
&gt; It looks like the spec currently doesn&apos;t have endpoint to neither delete one
&gt; cookie, nor to delete all cookies.
&gt; 
&gt; However, currently Webdriver does have endpoint to delete all cookies.
&gt; 
&gt; Is it intentional?

Yes this is. The spec doesn&apos;t always agree with the current implementation at least for now. This will converge around Selenium 3</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>