<?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>185666</bug_id>
          
          <creation_ts>2018-05-15 16:31:54 -0700</creation_ts>
          <short_desc>Cannot get persistent cookie from file when using custom persistent WKWebsiteDataStore without processpool</short_desc>
          <delta_ts>2022-03-18 11:11:03 -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>New Bugs</component>
          <version>WebKit Nightly Build</version>
          <rep_platform>Unspecified</rep_platform>
          <op_sys>Unspecified</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>CONFIGURATION CHANGED</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="Sihui Liu">sihui_liu</reporter>
          <assigned_to name="Sihui Liu">sihui_liu</assigned_to>
          <cc>ggaren</cc>
    
    <cc>sihui_liu</cc>
    
    <cc>webkit-bug-importer</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1424170</commentid>
    <comment_count>0</comment_count>
    <who name="Sihui Liu">sihui_liu</who>
    <bug_when>2018-05-15 16:31:54 -0700</bug_when>
    <thetext>Create a custom persistent WKWebsiteDataStore with specified cookieStorageFile, set a persistent cookie through Cookie API. Then Create another custom persistent WKWebsiteDataStore with same cookieStorageFile, and call getAllCookies from this store, we would get nothing.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1424354</commentid>
    <comment_count>1</comment_count>
    <who name="Geoffrey Garen">ggaren</who>
    <bug_when>2018-05-16 09:50:48 -0700</bug_when>
    <thetext>Similarly, two uses of the defaultDataStore will not persist cookie changes across process launches.

Similarly, if an app uses a WKWebView and the WKWebView stores some data -- cookies, databases, whatever -- then when the app relaunches I think its defaultDataStore will not be able to get or remove its data, until you first load a webpage.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1424892</commentid>
    <comment_count>2</comment_count>
    <who name="Radar WebKit Bug Importer">webkit-bug-importer</who>
    <bug_when>2018-05-17 14:01:35 -0700</bug_when>
    <thetext>&lt;rdar://problem/40343792&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1424895</commentid>
    <comment_count>3</comment_count>
    <who name="Radar WebKit Bug Importer">webkit-bug-importer</who>
    <bug_when>2018-05-17 14:02:51 -0700</bug_when>
    <thetext>&lt;rdar://problem/40343788&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1852771</commentid>
    <comment_count>4</comment_count>
    <who name="Sihui Liu">sihui_liu</who>
    <bug_when>2022-03-18 11:11:03 -0700</bug_when>
    <thetext>Currently all WKHTTPCookieStores fetch cookies via network process, and on Cocoa platform network process is a singleton, so we will be able to get cookies from different stores with the same cookie file path.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>