<?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>166481</bug_id>
          
          <creation_ts>2016-12-26 09:39:44 -0800</creation_ts>
          <short_desc>WebAssembly: implement the IndexDB caching API</short_desc>
          <delta_ts>2020-03-25 16:16:58 -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>JavaScriptCore</component>
          <version>WebKit Nightly Build</version>
          <rep_platform>Unspecified</rep_platform>
          <op_sys>Unspecified</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>CONFIGURATION CHANGED</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>168264</dependson>
          <blocked>161709</blocked>
    
    <blocked>166480</blocked>
          <everconfirmed>1</everconfirmed>
          <reporter name="JF Bastien">jfbastien</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>ashvayka</cc>
    
    <cc>chi187</cc>
    
    <cc>dpaddock</cc>
    
    <cc>gauravdewan007</cc>
    
    <cc>jfbastien</cc>
    
    <cc>keith_miller</cc>
    
    <cc>saam</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1262750</commentid>
    <comment_count>0</comment_count>
    <who name="JF Bastien">jfbastien</who>
    <bug_when>2016-12-26 09:39:44 -0800</bug_when>
    <thetext>As described here: https://github.com/WebAssembly/design/blob/master/JS.md#structured-clone-of-a-webassemblymodule

&gt; Structured Clone of a WebAssembly.Module
&gt;
&gt; A WebAssembly.Module is a cloneable object† which means it can be cloned between windows/workers and also stored/retrieved into/from an IDBObjectStore‡. The semantics of a structured clone is as-if the binary source, from which the WebAssembly.Module was compiled, were cloned and recompiled into the target realm. Engines should attempt to share/reuse internal compiled code when performing a structured clone although, in corner cases like CPU upgrade or browser update, this may not be possible and full recompilation may be necessary.
&gt;
&gt; Given the above engine optimizations, structured cloning provides developers explicit control over both compiled-code caching and cross-window/worker code sharing.

─
† https://html.spec.whatwg.org/multipage/infrastructure.html#cloneable-objects
‡ https://w3c.github.io/IndexedDB/#object-store</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1359118</commentid>
    <comment_count>1</comment_count>
    <who name="Gaurav Dewan">gauravdewan007</who>
    <bug_when>2017-10-11 04:22:08 -0700</bug_when>
    <thetext>This can give a great push to startup time as mentioned in
https://bugs.webkit.org/show_bug.cgi?id=178163
For example startup time of webassembly app which takes 2+ sec on Safari 11 on a latest fast mac machine gets loaded from indexeddb in less than 200 milliseconds.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1359205</commentid>
    <comment_count>2</comment_count>
    <who name="JF Bastien">jfbastien</who>
    <bug_when>2017-10-11 09:02:11 -0700</bug_when>
    <thetext>*** Bug 178163 has been marked as a duplicate of this bug. ***</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1507772</commentid>
    <comment_count>3</comment_count>
    <who name="Sergey Rubanov">chi187</who>
    <bug_when>2019-02-19 12:25:23 -0800</bug_when>
    <thetext>This could be closed per https://github.com/WebAssembly/spec/issues/821

IndexedDB should be replaced by Caching API</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>