<?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>142821</bug_id>
          
          <creation_ts>2015-03-18 05:21:59 -0700</creation_ts>
          <short_desc>[GTK][WK2] The WebKit network disk cache is not enabled</short_desc>
          <delta_ts>2015-05-06 02:14:08 -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>528+ (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>
          <dependson>143872</dependson>
    
    <dependson>144251</dependson>
    
    <dependson>144542</dependson>
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Marcos Chavarría Teijeiro (irc: chavaone)">chavarria1991</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>cdumez</cc>
    
    <cc>cgarcia</cc>
    
    <cc>chavarria1991</cc>
    
    <cc>clopez</cc>
    
    <cc>koivisto</cc>
    
    <cc>mcatanzaro</cc>
    
    <cc>ossy</cc>
    
    <cc>svillar</cc>
    
    <cc>zan</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1078168</commentid>
    <comment_count>0</comment_count>
    <who name="Marcos Chavarría Teijeiro (irc: chavaone)">chavarria1991</who>
    <bug_when>2015-03-18 05:21:59 -0700</bug_when>
    <thetext>The http/tests/cache/disk-cache-validation.html layout test is failing on GTK+ since r179449 (http://trac.webkit.org/changeset/179449).

This test enables the tests for cache funcionality.

The output is the following:

FAIL: Timed out waiting for notifyDone to be called</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1079421</commentid>
    <comment_count>1</comment_count>
    <who name="Chris Dumez">cdumez</who>
    <bug_when>2015-03-23 14:18:06 -0700</bug_when>
    <thetext>*** Bug 141702 has been marked as a duplicate of this bug. ***</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1079423</commentid>
    <comment_count>2</comment_count>
    <who name="Chris Dumez">cdumez</who>
    <bug_when>2015-03-23 14:18:24 -0700</bug_when>
    <thetext>*** Bug 141703 has been marked as a duplicate of this bug. ***</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1079425</commentid>
    <comment_count>3</comment_count>
    <who name="Chris Dumez">cdumez</who>
    <bug_when>2015-03-23 14:18:47 -0700</bug_when>
    <thetext>*** Bug 142818 has been marked as a duplicate of this bug. ***</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1079428</commentid>
    <comment_count>4</comment_count>
    <who name="Chris Dumez">cdumez</who>
    <bug_when>2015-03-23 14:20:39 -0700</bug_when>
    <thetext>Will consolidate the GTK TestExpectations via https://bugs.webkit.org/show_bug.cgi?id=142979.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1079925</commentid>
    <comment_count>5</comment_count>
    <who name="Carlos Alberto Lopez Perez">clopez</who>
    <bug_when>2015-03-25 04:49:22 -0700</bug_when>
    <thetext>Mac has recently enabled NETWORK_CACHE (See bug 30322) by default on r179449 &lt;ttp://trac.webkit.org/changeset/179449&gt;

Should GTK also enable it?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1079926</commentid>
    <comment_count>6</comment_count>
    <who name="Carlos Garcia Campos">cgarcia</who>
    <bug_when>2015-03-25 04:53:06 -0700</bug_when>
    <thetext>(In reply to comment #5)
&gt; Mac has recently enabled NETWORK_CACHE (See bug 30322) by default on r179449
&gt; &lt;ttp://trac.webkit.org/changeset/179449&gt;
&gt; 
&gt; Should GTK also enable it?

We first need to implement it :-) We also need to figure out what to do with the single web process model, I guess we could keep using the soup cache in the web process and the WebKit cache in the network process. Or we could make the single web process model become a multiple web process model with limit = 1, and the network process will always be used.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1079929</commentid>
    <comment_count>7</comment_count>
    <who name="Michael Catanzaro">mcatanzaro</who>
    <bug_when>2015-03-25 05:36:28 -0700</bug_when>
    <thetext>(In reply to comment #6)
&gt; Or we could
&gt; make the single web process model become a multiple web process model with
&gt; limit = 1, and the network process will always be used.

Note that a properly-sandboxed web process would not have any access to the network, so mandatory network process is something we&apos;d come to eventually anyway. (Also, it would make Apple happy, but you know that.)</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1079930</commentid>
    <comment_count>8</comment_count>
    <who name="Zan Dobersek">zan</who>
    <bug_when>2015-03-25 05:37:15 -0700</bug_when>
    <thetext>These are the slides from Antti&apos;s talk at the WK Contributors Meeting.
https://trac.webkit.org/attachment/wiki/March%202015%20Meeting/Disk%20cache.pdf

The main requirements are implementing NetworkCache::IOChannel and NetworkCache::Data. In GLib/GIO this might be possible by using GFile and GMemoryInputStream/GMemoryOutputStream (or whatever best replicates dispatch_io_* and dispatch_data_* APIs).</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1079939</commentid>
    <comment_count>9</comment_count>
    <who name="Michael Catanzaro">mcatanzaro</who>
    <bug_when>2015-03-25 07:36:42 -0700</bug_when>
    <thetext>(In reply to comment #6)
&gt; We first need to implement it :-) We also need to figure out what to do with
&gt; the single web process model, I guess we could keep using the soup cache in
&gt; the web process and the WebKit cache in the network process. Or we could
&gt; make the single web process model become a multiple web process model with
&gt; limit = 1, and the network process will always be used.

Mandatory network process is something I would be willing to implement, for bug #140075.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1079940</commentid>
    <comment_count>10</comment_count>
    <who name="Carlos Garcia Campos">cgarcia</who>
    <bug_when>2015-03-25 07:43:41 -0700</bug_when>
    <thetext>(In reply to comment #9)
&gt; (In reply to comment #6)
&gt; &gt; We first need to implement it :-) We also need to figure out what to do with
&gt; &gt; the single web process model, I guess we could keep using the soup cache in
&gt; &gt; the web process and the WebKit cache in the network process. Or we could
&gt; &gt; make the single web process model become a multiple web process model with
&gt; &gt; limit = 1, and the network process will always be used.
&gt; 
&gt; Mandatory network process is something I would be willing to implement, for
&gt; bug #140075.

The question is whether sandboxing will be mandatory as well, or just optional. There are use cases in embedded world where network process, caches, and sandboxing are not needed at all.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1088958</commentid>
    <comment_count>11</comment_count>
    <who name="Carlos Garcia Campos">cgarcia</who>
    <bug_when>2015-04-27 01:24:47 -0700</bug_when>
    <thetext>The initial implementation of the disk cache for soup landed in r183387. It works and all tests pass, but it hasn&apos;t been extensively tested yet. It can still be improved by using shareable resources, for example, but the only blocker is bug #144251 (to ensure all cache files are created with a creation time). So, I would like to enable the disk cache as soon as bug #144251 is fixed, so that we can start testing it now (early in the release cycle).</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1091724</commentid>
    <comment_count>12</comment_count>
      <attachid>252373</attachid>
    <who name="Carlos Garcia Campos">cgarcia</who>
    <bug_when>2015-05-05 03:05:01 -0700</bug_when>
    <thetext>Created attachment 252373
Patch

No more blockers, we are ready.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1091759</commentid>
    <comment_count>13</comment_count>
      <attachid>252373</attachid>
    <who name="Martin Robinson">mrobinson</who>
    <bug_when>2015-05-05 07:39:55 -0700</bug_when>
    <thetext>Comment on attachment 252373
Patch

Nice.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1092119</commentid>
    <comment_count>14</comment_count>
    <who name="Carlos Garcia Campos">cgarcia</who>
    <bug_when>2015-05-06 02:14:08 -0700</bug_when>
    <thetext>Committed r183865: &lt;http://trac.webkit.org/changeset/183865&gt;</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="1"
              isprivate="0"
          >
            <attachid>252373</attachid>
            <date>2015-05-05 03:05:01 -0700</date>
            <delta_ts>2015-05-05 07:39:55 -0700</delta_ts>
            <desc>Patch</desc>
            <filename>wk2-network-cache.diff</filename>
            <type>text/plain</type>
            <size>2586</size>
            <attacher name="Carlos Garcia Campos">cgarcia</attacher>
            
              <data encoding="base64">ZGlmZiAtLWdpdCBhL0xheW91dFRlc3RzL0NoYW5nZUxvZyBiL0xheW91dFRlc3RzL0NoYW5nZUxv
ZwppbmRleCBiZGE1Mjc5Li41MDU4NzJjIDEwMDY0NAotLS0gYS9MYXlvdXRUZXN0cy9DaGFuZ2VM
b2cKKysrIGIvTGF5b3V0VGVzdHMvQ2hhbmdlTG9nCkBAIC0xLDMgKzEsMTQgQEAKKzIwMTUtMDUt
MDUgIENhcmxvcyBHYXJjaWEgQ2FtcG9zICA8Y2dhcmNpYUBpZ2FsaWEuY29tPgorCisgICAgICAg
IFtHVEtdW1dLMl0gVGhlIFdlYktpdCBuZXR3b3JrIGRpc2sgY2FjaGUgaXMgbm90IGVuYWJsZWQK
KyAgICAgICAgaHR0cHM6Ly9idWdzLndlYmtpdC5vcmcvc2hvd19idWcuY2dpP2lkPTE0MjgyMQor
CisgICAgICAgIFJldmlld2VkIGJ5IE5PQk9EWSAoT09QUyEpLgorCisgICAgICAgIFVuc2tpcCBo
dHRwL3Rlc3RzL2NhY2hlL2Rpc2stY2FjaGUgdGVzdHMuCisKKyAgICAgICAgKiBwbGF0Zm9ybS9n
dGsvVGVzdEV4cGVjdGF0aW9uczoKKwogMjAxNS0wNS0wNSAgSm9hbm1hcmllIERpZ2dzICA8amRp
Z2dzQGlnYWxpYS5jb20+CiAKICAgICAgICAgW0FUS10gQVg6IGZpZ3VyZSBvdXQgcGxhdGZvcm0g
ZGlmZmVyZW5jZSBmb3IgQVRLIHRvIG1ha2UgYWNjZXNzaWJpbGl0eS90YWJsZS1jZWxsLWRpc3Bs
YXktYmxvY2suaHRtbCB3b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cmNlL1dlYktpdDIvY29uZmln
LmggYi9Tb3VyY2UvV2ViS2l0Mi9jb25maWcuaAppbmRleCBiYzlhYzI5Li4xNmRlYWZiIDEwMDY0
NAotLS0gYS9Tb3VyY2UvV2ViS2l0Mi9jb25maWcuaAorKysgYi9Tb3VyY2UvV2ViS2l0Mi9jb25m
aWcuaApAQCAtODIsNyArODIsNyBAQAogI2VuZGlmCiAKICNpZm5kZWYgRU5BQkxFX05FVFdPUktf
Q0FDSEUKLSNpZiBFTkFCTEUoTkVUV09SS19QUk9DRVNTKSAmJiBQTEFURk9STShDT0NPQSkKKyNp
ZiBFTkFCTEUoTkVUV09SS19QUk9DRVNTKSAmJiAoUExBVEZPUk0oQ09DT0EpIHx8IFBMQVRGT1JN
KEdUSykpCiAjZGVmaW5lIEVOQUJMRV9ORVRXT1JLX0NBQ0hFIDEKICNlbHNlCiAjZGVmaW5lIEVO
QUJMRV9ORVRXT1JLX0NBQ0hFIDAK
</data>
<flag name="review"
          id="277226"
          type_id="1"
          status="+"
          setter="mrobinson"
    />
          </attachment>
      

    </bug>

</bugzilla>