<?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>23418</bug_id>
          
          <creation_ts>2013-10-02 01:45:12 +0000</creation_ts>
          <short_desc>Internal structured clone type handling is inconsistent</short_desc>
          <delta_ts>2013-11-13 21:36:30 +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>PC</rep_platform>
          <op_sys>Windows NT</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P2</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>Unsorted</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Glenn Maynard">glenn</reporter>
          <assigned_to name="Ian &apos;Hixie&apos; Hickson">ian</assigned_to>
          <cc>ian</cc>
    
    <cc>mike</cc>
          
          <qa_contact>contributor</qa_contact>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>94140</commentid>
    <comment_count>0</comment_count>
    <who name="Glenn Maynard">glenn</who>
    <bug_when>2013-10-02 01:45:12 +0000</bug_when>
    <thetext>For Blob and File (a subclass of Blob), internal structured clone lists the types explicitly, which implies that &quot;is a Blob object&quot; actually means &quot;is a Blob object&quot; and not &quot;inherits from the Blob interface&quot;.

However, the &quot;is an ArrayBufferView object&quot; case obviously means &quot;inherits from ArrayBufferView&quot;, since you can only ever have subclasses of ArrayBufferView.

I&apos;d recommend removing the File case, and using the same approach as ArrayBufferView: &quot;Let output be a newly constructed object of the same type as input, corresponding to the same underlying data.&quot;, so it&apos;s clearer that these cases do apply to subclasses.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>96253</commentid>
    <comment_count>1</comment_count>
    <who name="">contributor</who>
    <bug_when>2013-11-13 21:36:30 +0000</bug_when>
    <thetext>Checked in as WHATWG revision r8277.
Check-in comment: File is a subclass of Blob so we can just use Blob&apos;s entry.
http://html5.org/tools/web-apps-tracker?from=8276&amp;to=8277</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>