<?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>129928</bug_id>
          
          <creation_ts>2014-03-07 15:08:21 -0800</creation_ts>
          <short_desc>WebCrypto should be available in workers</short_desc>
          <delta_ts>2016-12-01 14:04:04 -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>WebCore Misc.</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>InRadar</keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          <blocked>160883</blocked>
          <everconfirmed>1</everconfirmed>
          <reporter name="Alexey Proskuryakov">ap</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>adam</cc>
    
    <cc>bfulgham</cc>
    
    <cc>jiewen_tan</cc>
    
    <cc>rob</cc>
    
    <cc>syoichi</cc>
    
    <cc>unsung_hero-97</cc>
    
    <cc>webkit-bug-importer</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>988378</commentid>
    <comment_count>0</comment_count>
    <who name="Alexey Proskuryakov">ap</who>
    <bug_when>2014-03-07 15:08:21 -0800</bug_when>
    <thetext>SubtleCrypto algorithms just got exposed on workers.

Probably the most notable part of work here is to make structured clone work with CryptoKeys in workers.

Also from the WG resolution:

---------------------------
The previous blocking issues were:
1) Should we define sync interfaces
2) How do we handle multi-threaded Key access

We resolved point 1 by saying &quot;No&quot;
  - In the future, if we wish to do so, it can be as part of / extension to the Promise interface&quot; (eg: imagine a promise.wait() method)
We resolved point 2 by removing the Key Storage (long ago), allowing Keys to be handled in IDB. 
  - All cryptographic state is handled within the Promise, which isn&apos;t transferrable between workers
  - Key tainting is no longer required, by virtue of moving the hashed attributes into key generation, so we don&apos;t have synchronization risks there
  - Regardless, by virtue of the Promises() interface, implementations can take their own approach to scheduling the work for promises
---------------------------</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1195076</commentid>
    <comment_count>1</comment_count>
    <who name="Alexey Proskuryakov">ap</who>
    <bug_when>2016-05-19 19:15:34 -0700</bug_when>
    <thetext>*** Bug 157900 has been marked as a duplicate of this bug. ***</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1211173</commentid>
    <comment_count>2</comment_count>
    <who name="Radar WebKit Bug Importer">webkit-bug-importer</who>
    <bug_when>2016-07-14 15:19:24 -0700</bug_when>
    <thetext>&lt;rdar://problem/27359405&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1251934</commentid>
    <comment_count>3</comment_count>
    <who name="Brent Fulgham">bfulgham</who>
    <bug_when>2016-11-16 11:22:57 -0800</bug_when>
    <thetext>Is this already working with the new SubtleCrypto changes?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1251945</commentid>
    <comment_count>4</comment_count>
    <who name="Jiewen Tan">jiewen_tan</who>
    <bug_when>2016-11-16 11:55:42 -0800</bug_when>
    <thetext>(In reply to comment #3)
&gt; Is this already working with the new SubtleCrypto changes?

I think so. However, I will prefer to close this bug when all methods are in place.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1255458</commentid>
    <comment_count>5</comment_count>
    <who name="Jiewen Tan">jiewen_tan</who>
    <bug_when>2016-12-01 14:04:04 -0800</bug_when>
    <thetext>This bug should be resolved by the following revisions:
&lt;http://trac.webkit.org/changeset/207809&gt;,
&lt;http://trac.webkit.org/changeset/208548&gt;,
&lt;http://trac.webkit.org/changeset/208737&gt;,
&lt;http://trac.webkit.org/changeset/208891&gt;,
&lt;http://trac.webkit.org/changeset/208918&gt;,
&lt;http://trac.webkit.org/changeset/209092&gt;,
&lt;http://trac.webkit.org/changeset/209150&gt;,
&lt;http://trac.webkit.org/changeset/209164&gt;,
&lt;http://trac.webkit.org/changeset/209166&gt;,
&lt;http://trac.webkit.org/changeset/209191&gt;,
&lt;http://trac.webkit.org/changeset/209155&gt;,
&lt;http://trac.webkit.org/changeset/209200&gt;.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>