<?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>21505</bug_id>
          
          <creation_ts>2013-04-02 08:57:06 +0000</creation_ts>
          <short_desc>This algorithm does not work well for data URLs. The origin of a data URL resource is a unique identifier. That seems broken for data URLs found in the same document.</short_desc>
          <delta_ts>2013-05-30 22:05:59 +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>FIXED</resolution>
          
          
          <bug_file_loc>http://www.whatwg.org/specs/web-apps/current-work/#downloading-resources</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>
          
          <qa_contact>contributor</qa_contact>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>85363</commentid>
    <comment_count>0</comment_count>
    <who name="">contributor</who>
    <bug_when>2013-04-02 08:57:06 +0000</bug_when>
    <thetext>Specification: http://www.whatwg.org/specs/web-apps/current-work/
Multipage: http://www.whatwg.org/C#downloading-resources
Complete: http://www.whatwg.org/c#downloading-resources

Comment:
This algorithm does not work well for data URLs. The origin of a data URL
resource is a unique identifier. That seems broken for data URLs found in the
same document.

Posted from: 207.218.72.65
User agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_8_3) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/27.0.1453.6 Safari/537.36</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>85806</commentid>
    <comment_count>1</comment_count>
    <who name="Ian &apos;Hixie&apos; Hickson">ian</who>
    <bug_when>2013-04-09 17:56:05 +0000</bug_when>
    <thetext>The fix here is to make the step that says &quot;Let resource origin be the origin of the resource being downloaded&quot; instead say that /resource origin/ is the origin of the resource&apos;s URL, unless its scheme is data:, in which case it&apos;s the same as interface origin. (And move the step that defines &apos;interface origin&apos; up so we can refer to it.)

Right?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>85859</commentid>
    <comment_count>2</comment_count>
    <who name="Anne">annevk</who>
    <bug_when>2013-04-10 10:55:25 +0000</bug_when>
    <thetext>Yes, I think for now that is fine.

In the future this can use the resource&apos;s CORS-same-origin vs CORS-cross-origin flag as the former will be set for data URL downloads.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>88474</commentid>
    <comment_count>3</comment_count>
    <who name="">contributor</who>
    <bug_when>2013-05-30 22:05:59 +0000</bug_when>
    <thetext>Checked in as WHATWG revision r7873.
Check-in comment: Allow data: URLs to be given download=&apos;&apos; attribute names.
http://html5.org/tools/web-apps-tracker?from=7872&amp;to=7873</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>