<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugs.webkit.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.4.1"
          urlbase="https://bugs.webkit.org/"
          
          maintainer="admin@webkit.org"
>

    <bug>
          <bug_id>237419</bug_id>
          
          <creation_ts>2022-03-03 04:32:46 -0800</creation_ts>
          <short_desc>Invalid characters in HTTP Content-Security-Policy value doesn&apos;t impact the CSP</short_desc>
          <delta_ts>2022-03-03 05:24:32 -0800</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>WebKit</product>
          <component>Page Loading</component>
          <version>Safari Technology Preview</version>
          <rep_platform>Mac (Intel)</rep_platform>
          <op_sys>macOS 10.15</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>WORKSFORME</resolution>
          
          
          <bug_file_loc>https://www.mollysastrology.com</bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="karl">karl+webkit</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>beidson</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1847830</commentid>
    <comment_count>0</comment_count>
    <who name="karl">karl+webkit</who>
    <bug_when>2022-03-03 04:32:46 -0800</bug_when>
    <thetext>1. Go to https://www.mollysastrology.com
2. Check the HTTP Response

The value for HTTP Response 

HTTP/2 200 OK
date: Thu, 03 Mar 2022 11:40:47 GMT
content-type: text/html; charset=UTF-8
content-length: 20900
cache-control: public, max-age=0
expires: Thu, 03 Mar 2022 11:40:47 GMT
last-modified: Wed, 02 Mar 2022 19:10:07 GMT
accept-ranges: bytes
content-encoding: gzip
vary: Accept-Encoding
wpx: 1
strict-transport-security: max-age=31536000; includeSubDomains
x-xss-protection: 1; mode=block
content-security-policy: default-src â��selfâ��;
alt-svc: h3=&quot;:443&quot;; ma=2592000, h3-29=&quot;:443&quot;; ma=2592000, h3-Q050=&quot;:443&quot;; ma=2592000, h3-Q046=&quot;:443&quot;; ma=2592000, h3-Q043=&quot;:443&quot;; ma=2592000, quic=&quot;:443&quot;; ma=2592000; v=&quot;43,46&quot;
x-turbo-charged-by: LiteSpeed
x-edge-location: WPX CLOUD/TYO02
server: WPX CLOUD/TYO02
x-cache-status: MISS
X-Firefox-Spdy: h2



Check this specific Header.

content-security-policy: default-src â��selfâ��;


Expected:
This is to be determined.

Actual:
Currently Safari Tech Preview and Edge Blink Canary do not have any issues with it.
Firefox bails out on all subsequent resources and displays only the HTML page (without JS and CSS).

Note:
This probably requires to dig into the specification and determine
1. what the spec says
2. what is the best course of actions. Change the spec or align the implementations of Gecko, Blink and WebKit

Basically this creates a Webcompat issue
https://github.com/webcompat/web-bugs/issues/100417</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1847832</commentid>
    <comment_count>1</comment_count>
    <who name="karl">karl+webkit</who>
    <bug_when>2022-03-03 04:40:26 -0800</bug_when>
    <thetext>Opened on 
https://bugs.webkit.org/show_bug.cgi?id=237419
https://bugzilla.mozilla.org/show_bug.cgi?id=1757913
https://bugs.chromium.org/p/chromium/issues/detail?id=1302617</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1847847</commentid>
    <comment_count>2</comment_count>
    <who name="karl">karl+webkit</who>
    <bug_when>2022-03-03 05:24:32 -0800</bug_when>
    <thetext>So this is already a known bug on Firefox
https://bugzilla.mozilla.org/show_bug.cgi?id=1570722
And it was discussed on 
https://github.com/w3c/webappsec-csp/issues/473

The behavior of Blink and WebKit is right.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>