<?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>203043</bug_id>
          
          <creation_ts>2019-10-16 10:46:25 -0700</creation_ts>
          <short_desc>Non-cocoa platforms don&apos;t pass networkCacheDirectory from WebsiteDataStore::parameters()</short_desc>
          <delta_ts>2019-11-14 10:23:17 -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>WebKit2</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="Emilio Cobos Álvarez (:emilio)">emilio</reporter>
          <assigned_to name="Emilio Cobos Álvarez (:emilio)">emilio</assigned_to>
          <cc>achristensen</cc>
    
    <cc>alex</cc>
    
    <cc>cgarcia</cc>
    
    <cc>commit-queue</cc>
    
    <cc>pnormand</cc>
    
    <cc>webkit-bug-importer</cc>
    
    <cc>zimmermann</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1580579</commentid>
    <comment_count>0</comment_count>
    <who name="Emilio Cobos Álvarez (:emilio)">emilio</who>
    <bug_when>2019-10-16 10:46:25 -0700</bug_when>
    <thetext>Which causes the test runner and minibrowser error non-fatally with various messages like:

ERROR: Failed to initialize the WebKit network disk cache</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1580580</commentid>
    <comment_count>1</comment_count>
      <attachid>381085</attachid>
    <who name="Emilio Cobos Álvarez (:emilio)">emilio</who>
    <bug_when>2019-10-16 10:50:45 -0700</bug_when>
    <thetext>Created attachment 381085
Patch</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1580581</commentid>
    <comment_count>2</comment_count>
    <who name="Emilio Cobos Álvarez (:emilio)">emilio</who>
    <bug_when>2019-10-16 10:52:21 -0700</bug_when>
    <thetext>Probably need to do a bit of archeology, but this should be enough for EWS.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1580818</commentid>
    <comment_count>3</comment_count>
    <who name="Alex Christensen">achristensen</who>
    <bug_when>2019-10-16 18:59:07 -0700</bug_when>
    <thetext>We should probably unite the WebsiteDataStore::parameters functions.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1580826</commentid>
    <comment_count>4</comment_count>
      <attachid>381085</attachid>
    <who name="WebKit Commit Bot">commit-queue</who>
    <bug_when>2019-10-16 19:42:36 -0700</bug_when>
    <thetext>Comment on attachment 381085
Patch

Clearing flags on attachment: 381085

Committed r251222: &lt;https://trac.webkit.org/changeset/251222&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1580827</commentid>
    <comment_count>5</comment_count>
    <who name="WebKit Commit Bot">commit-queue</who>
    <bug_when>2019-10-16 19:42:37 -0700</bug_when>
    <thetext>All reviewed patches have been landed.  Closing bug.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1580828</commentid>
    <comment_count>6</comment_count>
    <who name="Radar WebKit Bug Importer">webkit-bug-importer</who>
    <bug_when>2019-10-16 19:43:15 -0700</bug_when>
    <thetext>&lt;rdar://problem/56356248&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1590233</commentid>
    <comment_count>7</comment_count>
    <who name="Philippe Normand">pnormand</who>
    <bug_when>2019-11-14 05:22:45 -0800</bug_when>
    <thetext>I suspect this might have caused bug #203460. Setting parameters.networkSessionParameters.networkCacheDirectory is not enough, I think you need to ensure the directory exists, like done for localStorageDirectory.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1590265</commentid>
    <comment_count>8</comment_count>
    <who name="Philippe Normand">pnormand</who>
    <bug_when>2019-11-14 10:23:17 -0800</bug_when>
    <thetext>(In reply to Philippe Normand from comment #7)
&gt; I suspect this might have caused bug #203460. 

It&apos;s not the cause of that bug, but

&gt; Setting
&gt; parameters.networkSessionParameters.networkCacheDirectory is not enough, I
&gt; think you need to ensure the directory exists, like done for
&gt; localStorageDirectory.

It would be good to have this suggested change as a follow-up :)</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="1"
              isprivate="0"
          >
            <attachid>381085</attachid>
            <date>2019-10-16 10:50:45 -0700</date>
            <delta_ts>2019-10-16 19:42:36 -0700</delta_ts>
            <desc>Patch</desc>
            <filename>bug-203043-20191016195043.patch</filename>
            <type>text/plain</type>
            <size>1563</size>
            <attacher name="Emilio Cobos Álvarez (:emilio)">emilio</attacher>
            
              <data encoding="base64">U3VidmVyc2lvbiBSZXZpc2lvbjogMjUwOTYyCmRpZmYgLS1naXQgYS9Tb3VyY2UvV2ViS2l0L0No
YW5nZUxvZyBiL1NvdXJjZS9XZWJLaXQvQ2hhbmdlTG9nCmluZGV4IGU4NTkyY2U5ZWZjZTdmYWM2
MmFhNWUwZmYwYWM2NzkwMDEzOTZjZWIuLmMxZjJjNDVjNTAxMThmNmE2NTMyYzAzZDZhMDNlMThk
YjU1ZDA5ZTMgMTAwNjQ0Ci0tLSBhL1NvdXJjZS9XZWJLaXQvQ2hhbmdlTG9nCisrKyBiL1NvdXJj
ZS9XZWJLaXQvQ2hhbmdlTG9nCkBAIC0xLDMgKzEsMTYgQEAKKzIwMTktMTAtMTYgIEVtaWxpbyBD
b2JvcyDDgWx2YXJleiAgPGVtaWxpb0BjcmlzYWwuaW8+CisKKyAgICAgICAgUGFzcyBuZXR3b3Jr
IGNhY2hlIGRpcmVjdG9yeSBpbiBXZWJz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