<?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>25566</bug_id>
          
          <creation_ts>2014-05-06 03:00:54 +0000</creation_ts>
          <short_desc>[imports]: Supporting more than just the script-src CSP directive in imports.</short_desc>
          <delta_ts>2015-07-06 08:12:33 +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>MOVED</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>
    
    <blocked>24632</blocked>
          <everconfirmed>1</everconfirmed>
          <reporter name="Philip Rogers">pdr</reporter>
          <assigned_to name="Morrita Hajime">morrita</assigned_to>
          <cc>adamk</cc>
    
    <cc>annevk</cc>
    
    <cc>dglazkov</cc>
    
    <cc>esprehn</cc>
    
    <cc>fbraun</cc>
    
    <cc>hillbrad</cc>
    
    <cc>mike</cc>
    
    <cc>public-webapps</cc>
    
    <cc>www-dom</cc>
          
          <qa_contact>public-webapps-bugzilla</qa_contact>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>105147</commentid>
    <comment_count>0</comment_count>
    <who name="Philip Rogers">pdr</who>
    <bug_when>2014-05-06 03:00:54 +0000</bug_when>
    <thetext>The Content Security Policy section of HTML Imports currently specifies: &quot;Content Security Policy must restrict import loading through the script-src directive.&quot;

There seems to be a slight mismatch between the CSP directives and what HTML Imports supports. For example, I can imagine html imports being used for just html+css, or just svg without script.

I don&apos;t have a great suggestion for how to support this other than additional import types such as &quot;import-src&quot;. Doing this would require spec&apos;ing how the transitive CSP dependencies of imports works.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>105162</commentid>
    <comment_count>1</comment_count>
    <who name="">fbraun</who>
    <bug_when>2014-05-06 07:57:20 +0000</bug_when>
    <thetext>Let&apos;s make sure resolving this issue does not involve monkey patching the CSP spec :)

The web application security working group has discussed imports and CSP previously and came to the conclusion that it should indeed fall under the script-src directive: http://lists.w3.org/Archives/Public/public-webappsec/2013Apr/0079.html

(CCing Brad Hill)</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>105175</commentid>
    <comment_count>2</comment_count>
    <who name="Anne">annevk</who>
    <bug_when>2014-05-06 12:39:36 +0000</bug_when>
    <thetext>A thing you could potentially do here is have gradations. E.g. you could still allow loading HTML imports, but not execute their scripts.

Part of the problem here is that we do not really know what the declarative version will look like...</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>121709</commentid>
    <comment_count>3</comment_count>
    <who name="Hayato Ito">hayato</who>
    <bug_when>2015-07-06 08:12:33 +0000</bug_when>
    <thetext>Moved to https://github.com/w3c/webcomponents/issues/217</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>