<?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>216559</bug_id>
          
          <creation_ts>2020-09-15 09:25:28 -0700</creation_ts>
          <short_desc>Remove runtime setting for enabling/disabling the Cache API?</short_desc>
          <delta_ts>2020-09-22 09:26:15 -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>WebCore Misc.</component>
          <version>WebKit Nightly Build</version>
          <rep_platform>Unspecified</rep_platform>
          <op_sys>Unspecified</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>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          <blocked>216512</blocked>
          <everconfirmed>1</everconfirmed>
          <reporter name="Sam Weinig">sam</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>koivisto</cc>
    
    <cc>webkit-bug-importer</cc>
    
    <cc>webkit-unassigned</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1688714</commentid>
    <comment_count>0</comment_count>
    <who name="Sam Weinig">sam</who>
    <bug_when>2020-09-15 09:25:28 -0700</bug_when>
    <thetext>Remove runtime setting for enabling/disabling the Cache API. It should always be enabled at this point.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1689676</commentid>
    <comment_count>1</comment_count>
    <who name="Sam Weinig">sam</who>
    <bug_when>2020-09-17 18:16:56 -0700</bug_when>
    <thetext>Looking at the implementation, it looks like this feature was never implemented for WebKitLegacy and seems to be intertwined with the network disk cache in WebKit2.

Antti, Chris, can you remind me why the disk cache logic was put into WebKit2? Is it something we could bring into WebCore at some point and use for both WebKitLegacy and WebKit2?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1689806</commentid>
    <comment_count>2</comment_count>
    <who name="Antti Koivisto">koivisto</who>
    <bug_when>2020-09-18 09:02:32 -0700</bug_when>
    <thetext>It was easier to make it WK2 only. It is not clear that risking breaking legacy clients by changing cache behavior is even desirable. The feature was introduced for WK2 clients with linked-on-or-after check.

We have plenty of other APIs that are not supported in WK1, right?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1689808</commentid>
    <comment_count>3</comment_count>
    <who name="Sam Weinig">sam</who>
    <bug_when>2020-09-18 09:07:07 -0700</bug_when>
    <thetext>(In reply to Antti Koivisto from comment #2)
&gt; It was easier to make it WK2 only. It is not clear that risking breaking
&gt; legacy clients by changing cache behavior is even desirable. The feature was
&gt; introduced for WK2 clients with linked-on-or-after check.
&gt; 
&gt; We have plenty of other APIs that are not supported in WK1, right?

I don&apos;t know. We certainly don&apos;t have it well documented what works in WebKit1 vs. WebKit2, which seems lie a pretty big potential footgun waiting to happen.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1690731</commentid>
    <comment_count>4</comment_count>
    <who name="Radar WebKit Bug Importer">webkit-bug-importer</who>
    <bug_when>2020-09-22 09:26:15 -0700</bug_when>
    <thetext>&lt;rdar://problem/69374740&gt;</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>