<?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>173361</bug_id>
          
          <creation_ts>2017-06-14 03:55:49 -0700</creation_ts>
          <short_desc>[Win] DRT should not use disk cache.</short_desc>
          <delta_ts>2018-07-31 12:45:49 -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>Tools / Tests</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></keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          <blocked>173399</blocked>
          <everconfirmed>1</everconfirmed>
          <reporter name="Per Arne Vollan">pvollan</reporter>
          <assigned_to name="Per Arne Vollan">pvollan</assigned_to>
          <cc>achristensen</cc>
    
    <cc>basuke</cc>
    
    <cc>bfulgham</cc>
    
    <cc>darin</cc>
    
    <cc>lforschler</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1319089</commentid>
    <comment_count>0</comment_count>
    <who name="Per Arne Vollan">pvollan</who>
    <bug_when>2017-06-14 03:55:49 -0700</bug_when>
    <thetext>Like on macOS/iOS, DRT on Windows should only use memory cache.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1319090</commentid>
    <comment_count>1</comment_count>
      <attachid>312883</attachid>
    <who name="Per Arne Vollan">pvollan</who>
    <bug_when>2017-06-14 03:57:41 -0700</bug_when>
    <thetext>Created attachment 312883
Patch</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1319113</commentid>
    <comment_count>2</comment_count>
      <attachid>312883</attachid>
    <who name="Darin Adler">darin</who>
    <bug_when>2017-06-14 07:37:20 -0700</bug_when>
    <thetext>Comment on attachment 312883
Patch

View in context: https://bugs.webkit.org/attachment.cgi?id=312883&amp;action=review

&gt; Tools/DumpRenderTree/win/DumpRenderTree.cpp:1469
&gt; +    RetainPtr&lt;CFURLCacheRef&gt; newCache = adoptCF(CFURLCacheCreate(kCFAllocatorDefault, 1024 * 1024, 0, nullptr));

I suggest using auto here, or just putting this inside the function call.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1319117</commentid>
    <comment_count>3</comment_count>
    <who name="Per Arne Vollan">pvollan</who>
    <bug_when>2017-06-14 07:52:14 -0700</bug_when>
    <thetext>(In reply to Darin Adler from comment #2)
&gt; Comment on attachment 312883 [details]
&gt; Patch
&gt; 
&gt; View in context:
&gt; https://bugs.webkit.org/attachment.cgi?id=312883&amp;action=review
&gt; 
&gt; &gt; Tools/DumpRenderTree/win/DumpRenderTree.cpp:1469
&gt; &gt; +    RetainPtr&lt;CFURLCacheRef&gt; newCache = adoptCF(CFURLCacheCreate(kCFAllocatorDefault, 1024 * 1024, 0, nullptr));
&gt; 
&gt; I suggest using auto here, or just putting this inside the function call.

Thanks for reviewing! I will update the patch before landing.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1319120</commentid>
    <comment_count>4</comment_count>
    <who name="Per Arne Vollan">pvollan</who>
    <bug_when>2017-06-14 07:58:28 -0700</bug_when>
    <thetext>Committed r218255: &lt;https://trac.webkit.org/changeset/218255/webkit&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1445576</commentid>
    <comment_count>5</comment_count>
    <who name="Basuke Suzuki">basuke</who>
    <bug_when>2018-07-26 15:44:56 -0700</bug_when>
    <thetext>Per Arne,
What is the source of this decision? We have an cache implementation in WebKitLegacy and wanna test it. So I am very curious what causes this patch.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1446565</commentid>
    <comment_count>6</comment_count>
    <who name="Per Arne Vollan">pvollan</who>
    <bug_when>2018-07-31 09:26:43 -0700</bug_when>
    <thetext>(In reply to Basuke Suzuki from comment #5)
&gt; Per Arne,
&gt; What is the source of this decision? We have an cache implementation in
&gt; WebKitLegacy and wanna test it. So I am very curious what causes this patch.

I believe we turned off the disk cache because macOS turned it off. You can probably enable it for WinCairo to test the cache implementation.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1446642</commentid>
    <comment_count>7</comment_count>
    <who name="Basuke Suzuki">basuke</who>
    <bug_when>2018-07-31 12:45:49 -0700</bug_when>
    <thetext>(In reply to Per Arne Vollan from comment #6)
&gt; (In reply to Basuke Suzuki from comment #5)
&gt; &gt; Per Arne,
&gt; &gt; What is the source of this decision? We have an cache implementation in
&gt; &gt; WebKitLegacy and wanna test it. So I am very curious what causes this patch.

Can you check AppleWin support disk cache or not? Does CFNetwork itself has disk cache feature? I guess that&apos;s why there&apos;s no need to test&apos;em explicitly with DRT.


&gt; I believe we turned off the disk cache because macOS turned it off. You can
&gt; probably enable it for WinCairo to test the cache implementation.

Yes, we are thinking about that. The code was old and we don&apos;t currently maintain them well, but without test, we can&apos;t touch them.</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="1"
              isprivate="0"
          >
            <attachid>312883</attachid>
            <date>2017-06-14 03:57:41 -0700</date>
            <delta_ts>2017-06-14 07:37:20 -0700</delta_ts>
            <desc>Patch</desc>
            <filename>bug-173361-20170614035740.patch</filename>
            <type>text/plain</type>
            <size>2118</size>
            <attacher name="Per Arne Vollan">pvollan</attacher>
            
              <data encoding="base64">SW5kZXg6IFRvb2xzL0NoYW5nZUxvZwo9PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09
PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09Ci0tLSBUb29scy9DaGFuZ2VMb2cJKHJl
dmlzaW9uIDIxODI1MS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GFyZFByZWZlcmVuY2VzUHJpdmF0ZSk7CiAgICAgc3Rh
bmRhcmRQcmVmZXJlbmNlcy0+c2V0QXV0b3NhdmVzKEZBTFNFKTsKIAorICAgIFJldGFpblB0cjxD
RlVSTENhY2hlUmVmPiBuZXdDYWNoZSA9IGFkb3B0Q0YoQ0ZVUkxDYWNoZUNyZWF0ZShrQ0ZBbGxv
Y2F0b3JEZWZhdWx0LCAxMDI0ICogMTAyNCwgMCwgbnVsbHB0cikpOworICAgIENGVVJMQ2FjaGVT
ZXRTaGFyZWRVUkxDYWNoZShuZXdDYWNoZS5nZXQoKSk7CisKICAgICBDT01QdHI8SVdlYlByZWZl
cmVuY2VzUHJpdmF0ZTQ+IHByZWZzUHJpdmF0ZTQoUXVlcnksIHN0YW5kYXJkUHJlZmVyZW5jZXMp
OwogICAgIHByZWZzUHJpdmF0ZTQtPnN3aXRjaE5ldHdvcmtMb2FkZXJUb05ld1Rlc3RpbmdTZXNz
aW9uKCk7CiAK
</data>
<flag name="review"
          id="333773"
          type_id="1"
          status="+"
          setter="darin"
    />
          </attachment>
      

    </bug>

</bugzilla>