<?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>25091</bug_id>
          
          <creation_ts>2014-03-18 15:47:47 +0000</creation_ts>
          <short_desc>[imports]: Want to be used with data: URL scheme</short_desc>
          <delta_ts>2015-04-17 16:35:14 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>WebAppsWG</product>
          <component>HISTORICAL - Component Model</component>
          <version>unspecified</version>
          <rep_platform>PC</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>INVALID</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P2</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          <blocked>20683</blocked>
          <everconfirmed>1</everconfirmed>
          <reporter name="Morrita Hajime">morrita</reporter>
          <assigned_to name="Dimitri Glazkov">dglazkov</assigned_to>
          <cc>annevk</cc>
    
    <cc>erik.arvidsson</cc>
    
    <cc>mike</cc>
    
    <cc>philipj</cc>
    
    <cc>public-webapps</cc>
          
          <qa_contact>public-webapps-bugzilla</qa_contact>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>102570</commentid>
    <comment_count>0</comment_count>
    <who name="Morrita Hajime">morrita</who>
    <bug_when>2014-03-18 15:47:47 +0000</bug_when>
    <thetext>Currently we cannot use (or aren&apos;t clear if we can use) data: URL.
This is because the origin of data: URL isn&apos;t clearly defined.
In Blink/WebKit, I believe it has its own origin. 

And AFAIK there is no way to do CORS request against data: URL.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>102572</commentid>
    <comment_count>1</comment_count>
    <who name="Anne">annevk</who>
    <bug_when>2014-03-18 15:55:36 +0000</bug_when>
    <thetext>Yes there is. Per http://fetch.spec.whatwg.org/ a data URL will return a response that isn&apos;t tainted.

It might take some time for everyone to get on board with this architecture but given service workers I think this is the way to go.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>102575</commentid>
    <comment_count>2</comment_count>
    <who name="Morrita Hajime">morrita</who>
    <bug_when>2014-03-18 17:07:31 +0000</bug_when>
    <thetext>(In reply to Anne from comment #1)
&gt; Yes there is. Per http://fetch.spec.whatwg.org/ a data URL will return a
&gt; response that isn&apos;t tainted.
&gt; 
&gt; It might take some time for everyone to get on board with this architecture
&gt; but given service workers I think this is the way to go.

Thanks for the feedback Anne!

So based on the spec, it seems data:// URL should return the response.
because it doesn&apos;t set response tainting mode and the basic fetch algorithm
doesn&apos;t see CORS related flags for data: url.

That means the imports spec doesn&apos;t have to take care of it.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>119639</commentid>
    <comment_count>3</comment_count>
    <who name="Dimitri Glazkov">dglazkov</who>
    <bug_when>2015-04-17 14:43:09 +0000</bug_when>
    <thetext>Philip mentioned something on https://code.google.com/p/chromium/issues/detail?id=350741 about re-opening this bug.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>119640</commentid>
    <comment_count>4</comment_count>
    <who name="Philip Jägenstedt">philipj</who>
    <bug_when>2015-04-17 16:35:14 +0000</bug_when>
    <thetext>Oh, that was poorly phrased, my guess was that the Chromium bug ought to be re-opened. In any event, the spec and Blink now seem to disagree, so I think one of the bugs ought to be re-opened.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>