<?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>188908</bug_id>
          
          <creation_ts>2018-08-23 16:55:41 -0700</creation_ts>
          <short_desc>[Curl] Implement deleteCookie()</short_desc>
          <delta_ts>2018-08-30 10:41:16 -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>Platform</component>
          <version>WebKit Nightly Build</version>
          <rep_platform>Unspecified</rep_platform>
          <op_sys>Unspecified</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords>InRadar</keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Basuke Suzuki">basuke</reporter>
          <assigned_to name="Basuke Suzuki">basuke</assigned_to>
          <cc>achristensen</cc>
    
    <cc>basuke</cc>
    
    <cc>chris.reid</cc>
    
    <cc>commit-queue</cc>
    
    <cc>ews-watchlist</cc>
    
    <cc>fujii</cc>
    
    <cc>galpeter</cc>
    
    <cc>joepeck</cc>
    
    <cc>webkit-bug-importer</cc>
    
    <cc>youennf</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1453318</commentid>
    <comment_count>0</comment_count>
    <who name="Basuke Suzuki">basuke</who>
    <bug_when>2018-08-23 16:55:41 -0700</bug_when>
    <thetext>Delete cookie was not implemented.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1453477</commentid>
    <comment_count>1</comment_count>
    <who name="Basuke Suzuki">basuke</who>
    <bug_when>2018-08-24 10:29:19 -0700</bug_when>
    <thetext>It is used from the web inspector.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1453478</commentid>
    <comment_count>2</comment_count>
      <attachid>348020</attachid>
    <who name="Basuke Suzuki">basuke</who>
    <bug_when>2018-08-24 10:31:47 -0700</bug_when>
    <thetext>Created attachment 348020
PATCH</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1453788</commentid>
    <comment_count>3</comment_count>
      <attachid>348020</attachid>
    <who name="Fujii Hironori">fujii</who>
    <bug_when>2018-08-26 21:29:02 -0700</bug_when>
    <thetext>Comment on attachment 348020
PATCH

I think this is not right. NetworkStorageSession::deleteCookie
should delete cookies only in the storage session for private
browsing mode. But, I don&apos;t object to land this change.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1453789</commentid>
    <comment_count>4</comment_count>
      <attachid>348020</attachid>
    <who name="WebKit Commit Bot">commit-queue</who>
    <bug_when>2018-08-26 21:55:16 -0700</bug_when>
    <thetext>Comment on attachment 348020
PATCH

Clearing flags on attachment: 348020

Committed r235351: &lt;https://trac.webkit.org/changeset/235351&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1453790</commentid>
    <comment_count>5</comment_count>
    <who name="WebKit Commit Bot">commit-queue</who>
    <bug_when>2018-08-26 21:55:18 -0700</bug_when>
    <thetext>All reviewed patches have been landed.  Closing bug.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1453791</commentid>
    <comment_count>6</comment_count>
    <who name="Radar WebKit Bug Importer">webkit-bug-importer</who>
    <bug_when>2018-08-26 21:56:16 -0700</bug_when>
    <thetext>&lt;rdar://problem/43742331&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1454580</commentid>
    <comment_count>7</comment_count>
    <who name="Basuke Suzuki">basuke</who>
    <bug_when>2018-08-28 15:24:49 -0700</bug_when>
    <thetext>(In reply to Fujii Hironori from comment #3)
&gt; Comment on attachment 348020 [details]
&gt; PATCH
&gt; 
&gt; I think this is not right. NetworkStorageSession::deleteCookie
&gt; should delete cookies only in the storage session for private
&gt; browsing mode. But, I don&apos;t object to land this change.

I cannot get what you say. CookieJarCurlDatabase::deleteCookie() will be called with proper NetworkStorageSession object. It doesn&apos;t tightly connected to private mode, but it may happen on default session. The method itself will be called from web inspector to delete specific cookie. These are my understanding.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1455123</commentid>
    <comment_count>8</comment_count>
    <who name="Fujii Hironori">fujii</who>
    <bug_when>2018-08-29 20:02:02 -0700</bug_when>
    <thetext>Curl port should suport multiple cookie storages for private browsing mode as well as other ports does.
NetworkStorageSession::deleteCookie should delete cookies only in its cookie storage.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1455275</commentid>
    <comment_count>9</comment_count>
    <who name="Basuke Suzuki">basuke</who>
    <bug_when>2018-08-30 10:41:16 -0700</bug_when>
    <thetext>Got it. Your point is that every network storage session shares same cookie jar db. We should fix that. Also we need a reference implementation of private mode in MiniBrowser.</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="1"
              isprivate="0"
          >
            <attachid>348020</attachid>
            <date>2018-08-24 10:31:47 -0700</date>
            <delta_ts>2018-08-26 21:55:16 -0700</delta_ts>
            <desc>PATCH</desc>
            <filename>188908.diff</filename>
            <type>text/plain</type>
            <size>1726</size>
            <attacher name="Basuke Suzuki">basuke</attacher>
            
              <data encoding="base64">ZGlmZiAtLWdpdCBhL1NvdXJjZS9XZWJDb3JlL0NoYW5nZUxvZyBiL1NvdXJjZS9XZWJDb3JlL0No
YW5nZUxvZwppbmRleCA0OGM4YjYwZDcwYi4uMzUwNDNiZTc0ZGEgMTAwNjQ0Ci0tLSBhL1NvdXJj
ZS9XZWJDb3JlL0NoYW5nZUxvZworKysgYi9Tb3VyY2UvV2ViQ29yZS9DaGFuZ2VMb2cKQEAgLTEs
MyArMSwxNyBAQAorMjAxOC0wOC0yNCAgQ2hyaXN0b3BoZXIgUmVpZCAg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