<?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>26384</bug_id>
          
          <creation_ts>2014-07-18 19:23:44 +0000</creation_ts>
          <short_desc>Structure cloning Map and Set objects: what should get cloned?</short_desc>
          <delta_ts>2016-02-29 21:24:51 +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></bug_file_loc>
          <status_whiteboard>blocked waiting for JS spec to define structured cloning</status_whiteboard>
          <keywords></keywords>
          <priority>P3</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>Unsorted</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Tom Schuster">evilpies</reporter>
          <assigned_to name="Ian &apos;Hixie&apos; Hickson">ian</assigned_to>
          <cc>adamk</cc>
    
    <cc>annevk</cc>
    
    <cc>bobbyholley</cc>
    
    <cc>ian</cc>
    
    <cc>jorendorff</cc>
    
    <cc>mike</cc>
          
          <qa_contact>contributor</qa_contact>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>109090</commentid>
    <comment_count>0</comment_count>
    <who name="Tom Schuster">evilpies</who>
    <bug_when>2014-07-18 19:23:44 +0000</bug_when>
    <thetext>I would like to have a confirmation that cloning the &quot;object properties&quot; on Map and Set is really intentional. I don&apos;t think that is particularly useful behavior.

In my first (non-specification based) implementation I didn&apos;t even consider that possibility. https://bugzilla.mozilla.org/show_bug.cgi?id=1036136</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>109091</commentid>
    <comment_count>1</comment_count>
    <who name="Jason Orendorff">jorendorff</who>
    <bug_when>2014-07-18 19:27:18 +0000</bug_when>
    <thetext>It&apos;s also a little surprising because the spec doesn&apos;t clone expando properties of Dates or Arrays. Always cloning expandos would at least be consistent.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>109112</commentid>
    <comment_count>2</comment_count>
    <who name="Ian &apos;Hixie&apos; Hickson">ian</who>
    <bug_when>2014-07-19 16:46:26 +0000</bug_when>
    <thetext>The current text is more or less a placeholder. I expect eventually the cloning of native JS types to be defined in JS proper.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>110205</commentid>
    <comment_count>3</comment_count>
    <who name="Bobby Holley (:bholley)">bobbyholley</who>
    <bug_when>2014-08-15 00:37:11 +0000</bug_when>
    <thetext>With my security hat on, I would vastly prefer to not clone expandos (and only do so for Object and Array). I can explain why if needed, but it sounds like nobody&apos;s really in disagreement here.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>120373</commentid>
    <comment_count>4</comment_count>
    <who name="Adam Klein">adamk</who>
    <bug_when>2015-05-19 21:14:00 +0000</bug_when>
    <thetext>The current spec text is in terms of [[MapData]] and [[SetData]], which looks correct to me. Should this issue be marked as resolved?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>122862</commentid>
    <comment_count>5</comment_count>
    <who name="Anne">annevk</who>
    <bug_when>2015-08-28 15:41:13 +0000</bug_when>
    <thetext>Indeed.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>125298</commentid>
    <comment_count>6</comment_count>
    <who name="Anne">annevk</who>
    <bug_when>2016-02-29 21:24:51 +0000</bug_when>
    <thetext>The text was indeed wrong and is unfortunately still wrong. This is now https://github.com/whatwg/html/issues/754 and I hope to fix it soon.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>