<?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>207546</bug_id>
          
          <creation_ts>2020-02-11 06:46:21 -0800</creation_ts>
          <short_desc>WKHttpStore does NOT sync until WKProcessPool is destroyed</short_desc>
          <delta_ts>2020-02-19 00:18:25 -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>WebKit API</component>
          <version>WebKit Nightly Build</version>
          <rep_platform>iPhone / iPad</rep_platform>
          <op_sys>All</op_sys>
          <bug_status>NEW</bug_status>
          <resolution></resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords>InRadar</keywords>
          <priority>P2</priority>
          <bug_severity>Blocker</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Brandon">bthomas</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>achristensen</cc>
    
    <cc>beidson</cc>
    
    <cc>cdumez</cc>
    
    <cc>ggaren</cc>
    
    <cc>krzysztof.modras</cc>
    
    <cc>rniwa</cc>
    
    <cc>sihui_liu</cc>
    
    <cc>webkit-bug-importer</cc>
    
    <cc>youennf</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1617363</commentid>
    <comment_count>0</comment_count>
    <who name="Brandon">bthomas</who>
    <bug_when>2020-02-11 06:46:21 -0800</bug_when>
    <thetext>When a web-page sets cookies, the cookies are reflected in the next request from the WKWebView. This works fine. However, if we try to access the cookies from WKWebView via the WKHttpCookieStore or from NSHTTPCookieStorage or from WKWebsiteDataStore. fetchDataRecordsOfTypes:completionHandler

The cookies are NOT there. However, if we set the `WKProcessPool` to  a new process pool, and then attempt to access the cookies, they are immediately flushed to disk and can be accessed.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1617421</commentid>
    <comment_count>1</comment_count>
    <who name="Radar WebKit Bug Importer">webkit-bug-importer</who>
    <bug_when>2020-02-11 09:22:31 -0800</bug_when>
    <thetext>&lt;rdar://problem/59350764&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1619253</commentid>
    <comment_count>2</comment_count>
    <who name="Sihui Liu">sihui_liu</who>
    <bug_when>2020-02-14 15:07:45 -0800</bug_when>
    <thetext>(In reply to Brandon from comment #0)
&gt; When a web-page sets cookies, the cookies are reflected in the next request
&gt; from the WKWebView. This works fine. However, if we try to access the
&gt; cookies from WKWebView via the WKHttpCookieStore or from NSHTTPCookieStorage
&gt; or from WKWebsiteDataStore. fetchDataRecordsOfTypes:completionHandler
&gt; 
&gt; The cookies are NOT there. However, if we set the `WKProcessPool` to  a new
&gt; process pool, and then attempt to access the cookies, they are immediately
&gt; flushed to disk and can be accessed.

Can you attach a test app for us to look into?</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>