<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://www.w3.org/Bugs/Public/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.4"
          urlbase="https://www.w3.org/Bugs/Public/"
          
          maintainer="sysbot+bugzilla@w3.org"
>

    <bug>
          <bug_id>28566</bug_id>
          
          <creation_ts>2015-04-27 09:51:01 +0000</creation_ts>
          <short_desc>Add a synchronous structured clone API</short_desc>
          <delta_ts>2016-03-03 17:33:10 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>WHATWG</product>
          <component>HTML</component>
          <version>unspecified</version>
          <rep_platform>Other</rep_platform>
          <op_sys>other</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>MOVED</resolution>
          
          
          <bug_file_loc>https://html.spec.whatwg.org/#structured-clone</bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P3</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>Unsorted</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter>contributor</reporter>
          <assigned_to name="Ian &apos;Hixie&apos; Hickson">ian</assigned_to>
          <cc>annevk</cc>
    
    <cc>ian</cc>
    
    <cc>mike</cc>
    
    <cc>travil</cc>
          
          <qa_contact>contributor</qa_contact>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>119931</commentid>
    <comment_count>0</comment_count>
    <who name="">contributor</who>
    <bug_when>2015-04-27 09:51:01 +0000</bug_when>
    <thetext>Specification: https://html.spec.whatwg.org/multipage/infrastructure.html
Multipage: https://html.spec.whatwg.org/multipage/#structured-clone
Complete: https://html.spec.whatwg.org/#structured-clone
Referrer: https://html.spec.whatwg.org/multipage/

Comment:
Add a synchronous structured clone API

Posted from: 77.57.114.240 by annevk@annevk.nl
User agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.10; rv:40.0) Gecko/20100101 Firefox/40.0</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>119932</commentid>
    <comment_count>1</comment_count>
    <who name="Anne">annevk</who>
    <bug_when>2015-04-27 09:51:44 +0000</bug_when>
    <thetext>See https://lists.w3.org/Archives/Public/public-webapps/2015AprJun/thread.html#msg251 for context and general support to add this.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>119958</commentid>
    <comment_count>2</comment_count>
    <who name="Travis Leithead [MSFT]">travil</who>
    <bug_when>2015-04-27 19:47:27 +0000</bug_when>
    <thetext>I think this is interesting, but isn&apos;t the use case in general for cross-origin? And in order to get your Transfer-Blob to a cross-origin destination, you probably have to use an existing gateway like postMessage, which is already going to use structured clone internally?

And if the use case is for object graph serialization/rehydration, then I would like to see this proceed in EcmaScript. I noticed Object.assign which is a &quot;shallow&quot; object clone. A &quot;deep&quot; clone would also be nice and could use structured clone (though it would be nice to keep prototype connections if possible).</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>120105</commentid>
    <comment_count>3</comment_count>
    <who name="Ian &apos;Hixie&apos; Hickson">ian</who>
    <bug_when>2015-05-05 21:38:40 +0000</bug_when>
    <thetext>I don&apos;t understand the use case here.

In any case this probably belongs in the JS spec. I don&apos;t think HTML should be where we maintain the core concept of structured cloning.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>125343</commentid>
    <comment_count>4</comment_count>
    <who name="Anne">annevk</who>
    <bug_when>2016-03-03 17:33:10 +0000</bug_when>
    <thetext>https://github.com/whatwg/html/issues/793</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>