<?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>21226</bug_id>
          
          <creation_ts>2013-03-08 18:06:46 +0000</creation_ts>
          <short_desc>[Imports]: Components fetching should always use CORS.</short_desc>
          <delta_ts>2013-09-19 01:55:40 +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>All</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>---</target_milestone>
          
          <blocked>20683</blocked>
          <everconfirmed>1</everconfirmed>
          <reporter name="Dimitri Glazkov">dglazkov</reporter>
          <assigned_to name="Dimitri Glazkov">dglazkov</assigned_to>
          <cc>annevk</cc>
    
    <cc>esprehn</cc>
    
    <cc>morrita</cc>
    
    <cc>zcorpan</cc>
          
          <qa_contact>public-webapps-bugzilla</qa_contact>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>84125</commentid>
    <comment_count>0</comment_count>
    <who name="Dimitri Glazkov">dglazkov</who>
    <bug_when>2013-03-08 18:06:46 +0000</bug_when>
    <thetext>Otherwise, there&apos;s a nasty side effect of being able to exploit a document by treating it as a component.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>85119</commentid>
    <comment_count>1</comment_count>
    <who name="Anne">annevk</who>
    <bug_when>2013-03-28 19:46:48 +0000</bug_when>
    <thetext>There&apos;s also the opposite scenario of a hostile component.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>85826</commentid>
    <comment_count>2</comment_count>
    <who name="Simon Pieters">zcorpan</who>
    <bug_when>2013-04-09 21:15:08 +0000</bug_when>
    <thetext>Please also see http://www.w3.org/mid/op.wuyfg2o4idj3kv@simons-macbook-pro.local</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>90956</commentid>
    <comment_count>3</comment_count>
    <who name="Dimitri Glazkov">dglazkov</who>
    <bug_when>2013-07-18 22:39:17 +0000</bug_when>
    <thetext>Did I get this right? https://dvcs.w3.org/hg/webcomponents/rev/27c0e8822ebb</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>90959</commentid>
    <comment_count>4</comment_count>
    <who name="Dimitri Glazkov">dglazkov</who>
    <bug_when>2013-07-18 22:48:17 +0000</bug_when>
    <thetext>3:42 PM &lt;annevk&gt; dglazkov: so now you cannot have CORS-cross-origin resources so that part of the spec doesn&apos;t make sense anymore
3:43 PM &lt;annevk&gt; dglazkov: you also need to say what happens if fetching failed
3:44 PM &lt;annevk&gt; I guess it&apos;s mostly fine otherwise, although I wonder if it shouldn&apos;t use a crossorigin attribute on &lt;link&gt; like most other things we have</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>90995</commentid>
    <comment_count>5</comment_count>
    <who name="Dimitri Glazkov">dglazkov</who>
    <bug_when>2013-07-19 17:27:58 +0000</bug_when>
    <thetext>(In reply to comment #4)
&gt; 3:44 PM &lt;annevk&gt; although I wonder if it
&gt; shouldn&apos;t use a crossorigin attribute on &lt;link&gt; like most other things we
&gt; have

But then if you don&apos;t specify the attribute, you&apos;ll just have a No CORS state, right?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>90999</commentid>
    <comment_count>6</comment_count>
    <who name="Anne">annevk</who>
    <bug_when>2013-07-19 17:46:33 +0000</bug_when>
    <thetext>The &lt;track&gt; element works like that, yes. No real opinion on what is better, but some consistency throughout would be good.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>93542</commentid>
    <comment_count>7</comment_count>
    <who name="Morrita Hajime">morrita</who>
    <bug_when>2013-09-19 01:55:40 +0000</bug_when>
    <thetext>(In reply to Anne from comment #6)
&gt; The &lt;track&gt; element works like that, yes. No real opinion on what is better,
&gt; but some consistency throughout would be good.

For &lt;track&gt;, it makes sense to load it but not to expose the detail through API. So having @crossorigin (on its parent &lt;media&gt;) makes sense. However for imports, it doesn&apos;t make sense to do that: Unlike movie subtitles, API-invisible imports aren&apos;t useful at all.

Theoretically we could possibly have @crossorigin for imports so that the author can make requests with credentials. But I don&apos;t see any usecase for that.
In contrast, not having @crossdomain makes the usage easier/simpler. If we introduce @crossorigin, people needs to give @crossorigin all the time once they want it CDN-aware, which is sad. I prefer to have better default than to just make the orange consistent to apples.

I&apos;m closing this for now. Feel free to reopen this to continue conversation.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>